<!DOCTYPE html> <html class style><!--
 Page saved with SingleFile 
 url: https://mp.weixin.qq.com/s/Dwt4lkKR_PEnWRprLlvPVw 
 saved date: Mon Oct 11 2021 06:56:20 GMT+0800 (中国标准时间)
--><meta charset=utf-8>
<meta http-equiv=X-UA-Compatible content="IE=edge">
<meta name=color-scheme content="light dark">
<meta name=viewport content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0,viewport-fit=cover">
<meta name=apple-mobile-web-app-capable content=yes>
<meta name=apple-mobile-web-app-status-bar-style content=black>
<meta name=format-detection content="telephone=no">
<meta name=description content=最大回撤，第二重要的策略评价指标>
<meta name=author content=邢不行>
<meta property=og:title content=如何通过3行Python代码计算最大回撤>
<meta property=og:url content="http://mp.weixin.qq.com/s?__biz=MzI5ODY5MTQwMA==&amp;mid=2247484890&amp;idx=1&amp;sn=4f99a9b3839c8255635490744982982c&amp;chksm=eca0bbfddbd732eb85384fec88f716c8874288daeffbde4d4b2f7d90b123ea91cf26e4945828#rd">
<meta property=og:image content="http://mmbiz.qpic.cn/mmbiz_jpg/icRWSd2YBLouiaebN7XMdRcASjTIWtaLR6NkxjL5GHoYdAiavf5LMibibWvWqjddNbaF6NfDCkN3icJZpMLXb7Gbib1Cg/0?wx_fmt=jpeg">
<meta property=og:description content=最大回撤，第二重要的策略评价指标>
<meta property=og:site_name content=微信公众平台>
<meta property=og:type content=article>
<meta property=og:article:author content=邢不行>
<meta property=twitter:card content=summary>
<meta property=twitter:image content="http://mmbiz.qpic.cn/mmbiz_jpg/icRWSd2YBLouiaebN7XMdRcASjTIWtaLR6NkxjL5GHoYdAiavf5LMibibWvWqjddNbaF6NfDCkN3icJZpMLXb7Gbib1Cg/0?wx_fmt=jpeg">
<meta property=twitter:title content=如何通过3行Python代码计算最大回撤>
<meta property=twitter:creator content=邢不行>
<meta property=twitter:site content=微信公众平台>
<meta property=twitter:description content=最大回撤，第二重要的策略评价指标>
<title>如何通过3行Python代码计算最大回撤</title>
<style>.rich_media_inner{word-wrap:break-word;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto}.rich_media_area_primary{padding:calc(20px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right)) 12px calc(16px + env(safe-area-inset-left))}.rich_media_area_extra{padding:0 env(safe-area-inset-right) calc(40px + env(safe-area-inset-bottom)) env(safe-area-inset-left)}.mpda_bottom_container{padding-left:8px;padding-right:8px}.appmsg_desktop_fontsize_2 .like_comment_wrp,.appmsg_desktop_fontsize_2 .rich_media_extra,.appmsg_desktop_fontsize_2 .like_comment_wrp,.appmsg_desktop_fontsize_2 .rich_media_tool,.appmsg_desktop_fontsize_2 .article-tag__list,.appmsg_desktop_fontsize_2 .rich_media_wrp{zoom:1}.appmsg_desktop_fontsize_2 .relate_mod_transition{zoom:1}@media screen and (min-width:1024px){.appmsg_desktop_fontsize_2 .rich_media_area_primary_inner,.appmsg_desktop_fontsize_2 .rich_media_area_extra_inner{max-width:677px}}html{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;line-height:1.6}body{-webkit-touch-callout:none;color:#333;background-color:#ededed;letter-spacing:.034em}body.wx_wap_page{font-family:-apple-system,BlinkMacSystemFont,"Helvetica Neue","PingFang SC","Hiragino Sans GB","Microsoft YaHei UI","Microsoft YaHei",Arial,sans-serif}h1{font-weight:400}a{color:#576b95;-webkit-tap-highlight-color:rgba(0,0,0,0)}.rich_media_title{font-size:22px;line-height:1.4;margin-bottom:14px}@supports (-webkit-overflow-scrolling:touch){.rich_media_title{font-weight:700}}.rich_media_meta_list{margin-bottom:22px;line-height:20px;font-size:0;word-wrap:break-word;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto}.rich_media_meta_list em{font-style:normal}.rich_media_meta_list .weui-wa-hotarea:after{min-height:100%;min-width:100%;padding:5px 4px}.rich_media_meta{display:inline-block;vertical-align:middle;margin:0 10px 10px 0;font-size:15px;-webkit-tap-highlight-color:rgba(0,0,0,0)}.rich_media_meta.appmsg_title_tag{margin-right:8px;overflow:visible}.rich_media_meta_text{color:rgba(0,0,0,0.3)}.rich_media_meta_nickname{position:relative}.rich_media_content{overflow:hidden;color:#333;font-size:17px;word-wrap:break-word;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;text-align:justify;z-index:0}.rich_media_content *{max-width:100%!important;box-sizing:border-box!important;-webkit-box-sizing:border-box!important;word-wrap:break-word!important}.rich_media_content p{clear:both;min-height:1em}.tips_global_primary{color:rgba(0,0,0,0.3)}.reset_btn{-webkit-appearance:none;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0;border:0;font-family:inherit}.rich_media_content img{height:auto!important}.appmsg_card_context{position:relative;background-color:#f7f7f7;border-radius:8px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.appmsg_card_context:hover{cursor:pointer}@media (prefers-color-scheme:dark){body:not([data-weui-theme='light']){--weui-BTN-DISABLED-FONT-COLOR:rgba(255,255,255,0.2)}}@media (prefers-color-scheme:dark){body:not([data-weui-theme='light']){--weui-BTN-DEFAULT-BG:rgba(255,255,255,0.08)}}@media (prefers-color-scheme:dark){body:not([data-weui-theme='light']){--weui-BTN-DEFAULT-COLOR:rgba(255,255,255,0.8)}}@media (prefers-color-scheme:dark){body:not([data-weui-theme='light']){--weui-BTN-DEFAULT-ACTIVE-BG:rgba(122,122,122,0.1536)}}@media (prefers-color-scheme:dark){body:not([data-weui-theme='light']){--weui-DIALOG-LINE-COLOR:rgba(255,255,255,0.1)}}@media (prefers-color-scheme:dark){body:not([data-weui-theme='light']){--weui-BG-0:#111;--weui-BG-1:#1e1e1e;--weui-BG-2:#191919;--weui-BG-3:#202020;--weui-BG-4:#404040;--weui-BG-5:#2c2c2c;--weui-FG-0:rgba(255,255,255,0.8);--weui-FG-HALF:rgba(255,255,255,0.6);--weui-FG-1:rgba(255,255,255,0.5);--weui-FG-2:rgba(255,255,255,0.3);--weui-FG-3:rgba(255,255,255,0.05);--weui-RED:#fa5151;--weui-ORANGE:#c87d2f;--weui-YELLOW:#cc9c00;--weui-GREEN:#74a800;--weui-LIGHTGREEN:#3eb575;--weui-BRAND:#07c160;--weui-BLUE:#10aeff;--weui-INDIGO:#1196ff;--weui-PURPLE:#8183ff;--weui-WHITE:rgba(255,255,255,0.8);--weui-LINK:#7d90a9;--weui-TEXTGREEN:#259c5c;--weui-FG:white;--weui-BG:black;--weui-TAG-TEXT-ORANGE:rgba(250,157,59,0.6);--weui-TAG-BACKGROUND-ORANGE:rgba(250,157,59,0.1);--weui-TAG-TEXT-GREEN:rgba(6,174,86,0.6);--weui-TAG-BACKGROUND-GREEN:rgba(6,174,86,0.1);--weui-TAG-TEXT-BLUE:rgba(16,174,255,0.6);--weui-TAG-BACKGROUND-BLUE:rgba(16,174,255,0.1);--weui-TAG-TEXT-BLACK:rgba(255,255,255,0.5);--weui-TAG-BACKGROUND-BLACK:rgba(255,255,255,0.05)}}@media (prefers-color-scheme:dark){body:not([data-weui-theme='light']){--weui-BG-COLOR-ACTIVE:#282828}}.weui-flex{display:-webkit-box;display:-webkit-flex}.weui-flex__item{-webkit-box-flex:1;-webkit-flex:1}.weui-media-box:before{content:" ";position:absolute;left:0;top:0;right:0;height:1px;border-top:1px solid rgba(0,0,0,0.1);border-top:1px solid var(--weui-FG-3);color:rgba(0,0,0,0.1);color:var(--weui-FG-3);-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-transform:scaleY(0.5);transform:scaleY(0.5);left:16px}.weui-media-box:first-child:before{display:none}.weui-media-box_appmsg{display:-webkit-box;display:-webkit-flex;-webkit-box-align:center;-webkit-align-items:center}.weui-media-box_appmsg .weui-media-box__bd{-webkit-box-flex:1;-webkit-flex:1}.weui-btn{-webkit-tap-highlight-color:rgba(0,0,0,0)}.weui-btn_primary:not(.weui-btn_disabled):visited{color:#fff}.weui-btn_primary:not(.weui-btn_disabled):active{background-color:#06ae56;background-color:var(--weui-TAG-TEXT-GREEN)}button.weui-btn{-webkit-appearance:none}button.weui-btn:focus,input.weui-btn:focus{outline:0}@-webkit-keyframes circleLoading{0%{-webkit-transform:rotate3d(0,0,1,0deg);transform:rotate3d(0,0,1,0deg)}100%{-webkit-transform:rotate3d(0,0,1,360deg);transform:rotate3d(0,0,1,360deg)}}@keyframes circleLoading{0%{-webkit-transform:rotate3d(0,0,1,0deg);transform:rotate3d(0,0,1,0deg)}100%{-webkit-transform:rotate3d(0,0,1,360deg);transform:rotate3d(0,0,1,360deg)}}@-webkit-keyframes weuiLoading{0%{-webkit-transform:rotate3d(0,0,1,0deg);transform:rotate3d(0,0,1,0deg)}100%{-webkit-transform:rotate3d(0,0,1,360deg);transform:rotate3d(0,0,1,360deg)}}@keyframes weuiLoading{0%{-webkit-transform:rotate3d(0,0,1,0deg);transform:rotate3d(0,0,1,0deg)}100%{-webkit-transform:rotate3d(0,0,1,360deg);transform:rotate3d(0,0,1,360deg)}}.weui-btn.weui-btn{overflow:visible}@media (prefers-color-scheme:dark){body:not([data-weui-theme='light']){--weui-BTN-DISABLED-FONT-COLOR:rgba(255,255,255,0.2)}}@media (prefers-color-scheme:dark){body:not([data-weui-theme='light']){--weui-BTN-DEFAULT-BG:rgba(255,255,255,0.08)}}@media (prefers-color-scheme:dark){body:not([data-weui-theme='light']){--weui-BTN-DEFAULT-COLOR:rgba(255,255,255,0.8)}}@media (prefers-color-scheme:dark){body:not([data-weui-theme='light']){--weui-BTN-DEFAULT-ACTIVE-BG:rgba(122,122,122,0.1536)}}@media (prefers-color-scheme:dark){body:not([data-weui-theme='light']){--weui-DIALOG-LINE-COLOR:rgba(255,255,255,0.1)}}@media (prefers-color-scheme:dark){body:not([data-weui-theme='light']){--weui-BG-0:#111;--weui-BG-1:#1e1e1e;--weui-BG-2:#191919;--weui-BG-3:#202020;--weui-BG-4:#404040;--weui-BG-5:#2c2c2c;--weui-FG-0:rgba(255,255,255,0.8);--weui-FG-HALF:rgba(255,255,255,0.6);--weui-FG-1:rgba(255,255,255,0.5);--weui-FG-2:rgba(255,255,255,0.3);--weui-FG-3:rgba(255,255,255,0.05);--weui-RED:#fa5151;--weui-ORANGE:#c87d2f;--weui-YELLOW:#cc9c00;--weui-GREEN:#74a800;--weui-LIGHTGREEN:#3eb575;--weui-BRAND:#07c160;--weui-BLUE:#10aeff;--weui-INDIGO:#1196ff;--weui-PURPLE:#8183ff;--weui-WHITE:rgba(255,255,255,0.8);--weui-LINK:#7d90a9;--weui-TEXTGREEN:#259c5c;--weui-FG:white;--weui-BG:black;--weui-TAG-TEXT-ORANGE:rgba(250,157,59,0.6);--weui-TAG-BACKGROUND-ORANGE:rgba(250,157,59,0.1);--weui-TAG-TEXT-GREEN:rgba(6,174,86,0.6);--weui-TAG-BACKGROUND-GREEN:rgba(6,174,86,0.1);--weui-TAG-TEXT-BLUE:rgba(16,174,255,0.6);--weui-TAG-BACKGROUND-BLUE:rgba(16,174,255,0.1);--weui-TAG-TEXT-BLACK:rgba(255,255,255,0.5);--weui-TAG-BACKGROUND-BLACK:rgba(255,255,255,0.05)}}@media (prefers-color-scheme:dark){body:not([data-weui-theme='light']){--weui-BG-COLOR-ACTIVE:#282828}}@-webkit-keyframes live-icon-inner{0%{-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}23%{width:1.9em;height:1.9em;-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}43%{width:0;height:0;-webkit-animation-timing-function:linear;animation-timing-function:linear}55%{width:0;height:0;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}74%{width:2em;height:2em;-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}}@keyframes live-icon-inner{0%{-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}23%{width:1.9em;height:1.9em;-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}43%{width:0;height:0;-webkit-animation-timing-function:linear;animation-timing-function:linear}55%{width:0;height:0;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}74%{width:2em;height:2em;-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}}@-webkit-keyframes live-icon-outer{0%{width:1.84em;height:1.84em;border-width:0;-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}22%{width:2.2em;height:2.2em;border-width:0;-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}50%{width:2.8em;height:2.8em;border-width:1.4em;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}72%{width:2.2em;height:2.2em;border-width:0;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}100%{width:1.84em;height:1.84em;border-width:0}}@keyframes live-icon-outer{0%{width:1.84em;height:1.84em;border-width:0;-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}22%{width:2.2em;height:2.2em;border-width:0;-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}50%{width:2.8em;height:2.8em;border-width:1.4em;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}72%{width:2.2em;height:2.2em;border-width:0;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}100%{width:1.84em;height:1.84em;border-width:0}}@-webkit-keyframes live-icon-wrapper{0%{-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}23.9%{width:2.05em;height:2.05em;opacity:1}24%,74%{opacity:0}74.1%{width:2.05em;height:2.05em;opacity:1}100%{-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}}@keyframes live-icon-wrapper{0%{-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}23.9%{width:2.05em;height:2.05em;opacity:1}24%,74%{opacity:0}74.1%{width:2.05em;height:2.05em;opacity:1}100%{-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}}.icon_appmsg_tag{display:inline-block;vertical-align:middle;padding:0 4px;font-size:12px;line-height:1.67;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;width:auto;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal;max-width:70%;font-style:normal;letter-spacing:normal;background:rgba(0,0,0,0.05);color:rgba(0,0,0,0.3)}.article-tag__list{font-size:0;margin:0 0 16px;padding:12px 16px;border-radius:8px;background-color:#f7f7f7;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.article-tag__list:empty{margin:0;display:none}.article-tag__list .article-tag__item{display:inline-block;font-size:15px;line-height:20px;color:#576b95}.article-tag__list .article-tag__item:active{opacity:.5}.article-tag__list .article-tag__item:last-child{margin-right:0}.article-tags{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap}.article-tag__item-wrp{margin-right:12px;margin-top:6px;display:-webkit-box;display:-webkit-flex;display:flex}.article-tag__item-wrp.weui-wa-hotarea:after{min-height:100%;padding:3px 6px}.article-tag__item-wrp:active{opacity:.5}.article-tag__item-wrp:last-child{margin-right:0}.article-tag__item-num{display:inline-block;color:rgba(0,0,0,0.3);border-radius:8px;font-size:15px;line-height:20px;margin-left:4px}.article-tag-card__title{font-size:15px;color:rgba(0,0,0,0.5);line-height:20px}.article-tag__error-tips{background:#4c4c4c;border-radius:8px;color:rgba(255,255,255,0.9);padding:12px 16px;font-size:17px;position:fixed;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);top:45%;left:50%;z-index:3}@media (prefers-color-scheme:dark){.article-tag__list{background-color:#202020}.article-tag__list .article-tag__item{color:#7d90a9}.article-tag__error-tips{background:#404040}.article-tag-card__title{color:rgba(255,255,255,0.5)}.article-tag__item-num{color:rgba(255,255,255,0.3)}}.appmsg_skin_default .rich_media_area_primary{background-color:#fff}.appmsg_style_default .rich_media_tool{margin-top:15px}.read-more__area{margin:30px 0}:root{--sab:env(safe-area-inset-bottom)}.rich_media_wrp{position:relative}.rich_media_tool{font-size:15px;line-height:32px;overflow:visible}.rich_media_tool .meta_primary{float:none}.rich_media_tool .meta_primary{margin-right:20px}.rich_media_tool>.weui-flex+.weui-flex{position:relative}.rich_media_tool>.weui-flex+.weui-flex:before{content:"";content:" ";position:absolute;left:0;top:0;right:0;height:1px;border-top:1px solid rgba(0,0,0,0.1);-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-transform:scaleY(0.5);transform:scaleY(0.5);display:none}.rich_media_tool .weui-flex__item{display:-webkit-box;display:-webkit-flex;display:flex;min-width:0;-webkit-flex-wrap:wrap;flex-wrap:wrap}.rich_media_tool .weui-flex__item .meta_primary:last-child{margin-right:0}.rich_media_tool .sns_opr_area{padding-top:8px;line-height:28px}.media_tool_meta{white-space:nowrap;-webkit-flex-shrink:0;flex-shrink:0}.like_comment_wrp{font-size:17px;margin-top:9px;margin-bottom:8px;position:relative;z-index:1}.like_comment_wrp:before,.like_comment_wrp:after{content:"";display:inline-block;width:0;height:0;border-width:7px;border-style:dashed;border-color:transparent;border-top-width:0;border-bottom-color:rgba(0,0,0,0.03);border-bottom-style:solid;position:absolute;top:-7px;right:28px}.like_comment_wrp:after{border-bottom-color:#f7f7f7;top:-6px}@supports (-apple-color-filter:initial){.appmsg_search_card .appmsg_search_nickname{font-weight:500}}@media screen and (min-width:1024px){.rich_media_area_primary_inner,.rich_media_area_extra_inner{max-width:677px;margin-left:auto;margin-right:auto}.rich_media_area_primary{padding-top:32px}}@media (prefers-color-scheme:dark){.icon_appmsg_tag{background-color:rgba(255,255,255,0.05);color:rgba(255,255,255,0.3)}body{color:rgba(255,255,255,0.6)}.tips_global_primary.tips_global_primary{color:rgba(255,255,255,0.3)}.appmsg_card_context{background-color:#202020}.rich_media_tool>.weui-flex+.weui-flex:before{border-top-color:rgba(255,255,255,0.05)}.appmsg_skin_default .rich_media_area_primary{background-color:#191919}body{background-color:#111}body a{color:#7d90a9}.rich_media_content{color:rgba(255,255,255,0.6)}.rich_media_content img{-webkit-filter:brightness(0.8);filter:brightness(0.8)}.rich_media_meta_text{color:rgba(255,255,255,0.3)}}</style>
<!--[if lt IE 9]>
<link rel="stylesheet" type="text/css" href="//res.wx.qq.com/mmbizwap/zh_CN/htmledition/style/page/appmsg_new/pc55871f.css">
<![endif]-->
<style id=page/appmsg_new/mod/album_read.css>@media (prefers-color-scheme:dark){.js_darkmode__0{color:rgb(44,88,255)!important}.js_darkmode__1{color:rgb(44,88,255)!important}}@media (prefers-color-scheme:dark){.js_darkmode__2{color:rgb(44,88,255)!important}.js_darkmode__3{color:rgb(163,163,163)!important}.js_darkmode__4{color:rgb(163,163,163)!important}.js_darkmode__5{color:rgb(44,88,255)!important}.js_darkmode__6{color:rgb(44,88,255)!important}.js_darkmode__7{color:rgb(44,88,255)!important}.js_darkmode__8{color:rgb(163,163,163)!important}.js_darkmode__9{color:rgb(163,163,163)!important}.js_darkmode__10{color:rgb(44,88,255)!important}.js_darkmode__11{color:rgb(44,88,255)!important}.js_darkmode__12{color:rgb(44,88,255)!important}.js_darkmode__13{color:rgb(44,88,255)!important}.js_darkmode__14{color:rgb(44,88,255)!important}.js_darkmode__15{color:rgb(44,88,255)!important}.js_darkmode__16{color:rgb(44,88,255)!important}.js_darkmode__17{color:#191919!important;background-color:rgb(249,197,0)!important}.js_darkmode__18{border-bottom:2px solid rgb(213,169,0)!important}.js_darkmode__19{color:#191919!important;background-color:rgb(249,197,0)!important}}@media (prefers-color-scheme:dark){body:not([data-weui-theme=light]){--weui-BTN-DISABLED-FONT-COLOR:hsla(0,0%,100%,.2)}}@media (prefers-color-scheme:dark){body:not([data-weui-theme=light]){--weui-BTN-DEFAULT-BG:hsla(0,0%,100%,.08)}}@media (prefers-color-scheme:dark){body:not([data-weui-theme=light]){--weui-BTN-DEFAULT-COLOR:hsla(0,0%,100%,.8)}}@media (prefers-color-scheme:dark){body:not([data-weui-theme=light]){--weui-BTN-DEFAULT-ACTIVE-BG:hsla(0,0%,100%,.126)}}@media (prefers-color-scheme:dark){body:not([data-weui-theme=light]){--weui-DIALOG-LINE-COLOR:hsla(0,0%,100%,.1)}}html{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}*{margin:0;padding:0;outline:0}a{text-decoration:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}::-webkit-input-placeholder{color:rgba(0,0,0,.3);color:var(--weui-FG-2)}::placeholder{color:rgba(0,0,0,.3);color:var(--weui-FG-2)}body{--weui-LINK-ACTIVE:rgba(87,107,149,.5)}@media (prefers-color-scheme:dark){body:not([data-weui-theme=light]){--weui-BG-0:#111;--weui-BG-1:#1e1e1e;--weui-BG-2:#191919;--weui-BG-3:#202020;--weui-BG-4:#404040;--weui-BG-5:#2c2c2c;--weui-FG-0:hsla(0,0%,100%,.8);--weui-FG-HALF:hsla(0,0%,100%,.6);--weui-FG-1:hsla(0,0%,100%,.5);--weui-FG-2:hsla(0,0%,100%,.3);--weui-FG-3:hsla(0,0%,100%,.05);--weui-RED:#fa5151;--weui-ORANGE:#c87d2f;--weui-YELLOW:#cc9c00;--weui-GREEN:#74a800;--weui-LIGHTGREEN:#3eb575;--weui-BRAND:#07c160;--weui-BLUE:#10aeff;--weui-INDIGO:#1196ff;--weui-PURPLE:#8183ff;--weui-WHITE:hsla(0,0%,100%,.8);--weui-LINK:#7d90a9;--weui-LINK-ACTIVE:rgba(125,144,169,.5);--weui-TEXTGREEN:#259c5c;--weui-FG:#fff;--weui-BG:#000;--weui-TAG-TEXT-ORANGE:rgba(250,157,59,.6);--weui-TAG-BACKGROUND-ORANGE:rgba(250,157,59,.1);--weui-TAG-TEXT-GREEN:rgba(6,174,86,.6);--weui-TAG-BACKGROUND-GREEN:rgba(6,174,86,.1);--weui-TAG-TEXT-BLUE:rgba(16,174,255,.6);--weui-TAG-BACKGROUND-BLUE:rgba(16,174,255,.1);--weui-TAG-TEXT-BLACK:hsla(0,0%,100%,.5);--weui-TAG-BACKGROUND-BLACK:hsla(0,0%,100%,.05)}}@media (prefers-color-scheme:dark){body:not([data-weui-theme=light]){--weui-BG-COLOR-ACTIVE:#373737}}.weui-wa-hotarea{position:relative}.weui-wa-hotarea:after,.weui-wa-hotarea_before:before{content:"";position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);min-width:44px;min-height:44px;width:100%;height:100%;background:hsla(0,0%,100%,0)}.weui-btn{-webkit-tap-highlight-color:rgba(0,0,0,0)}.weui-btn_primary:not(.weui-btn_disabled):visited{color:#fff}.weui-btn_primary:not(.weui-btn_disabled):active{background-color:#06ae56;background-color:var(--weui-TAG-TEXT-GREEN)}button.weui-btn{-webkit-appearance:none}button.weui-btn:focus,input.weui-btn:focus{outline:0}@supports (-webkit-overflow-scrolling:touch){.weui-msg__title{font-weight:500;-webkit-text-stroke:initial}}.weui-media-box:before{content:" ";position:absolute;left:0;top:0;right:0;height:1px;border-top:1px solid rgba(0,0,0,.1);border-top:1px solid var(--weui-FG-3);color:rgba(0,0,0,.1);color:var(--weui-FG-3);-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-transform:scaleY(.5);transform:scaleY(.5);left:16px}.weui-media-box:first-child:before{display:none}.weui-media-box__info{display:block}.weui-media-box_appmsg{display:-webkit-box;display:-webkit-flex;-webkit-box-align:center;-webkit-align-items:center}.weui-media-box_appmsg .weui-media-box__bd{-webkit-box-flex:1;-webkit-flex:1}.weui-flex{display:-webkit-box;display:-webkit-flex}.weui-flex__item{-webkit-box-flex:1;-webkit-flex:1}@-webkit-keyframes a{0%{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes a{0%{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@-webkit-keyframes b{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}@keyframes b{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}@-webkit-keyframes c{0%{opacity:0}to{opacity:1}}@keyframes c{0%{opacity:0}to{opacity:1}}@-webkit-keyframes d{0%{opacity:1}to{opacity:0}}@keyframes d{0%{opacity:1}to{opacity:0}}@-webkit-keyframes e{0%{-webkit-transform:translateX(0);transform:translateX(0)}16%{-webkit-transform:translateX(-8px);transform:translateX(-8px)}28%{-webkit-transform:translateX(-16px);transform:translateX(-16px)}44%{-webkit-transform:translateX(0);transform:translateX(0)}59%{-webkit-transform:translateX(-16px);transform:translateX(-16px)}73%{-webkit-transform:translateX(0);transform:translateX(0)}82%{-webkit-transform:translateX(16px);transform:translateX(16px)}94%{-webkit-transform:translateX(8px);transform:translateX(8px)}to{-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes e{0%{-webkit-transform:translateX(0);transform:translateX(0)}16%{-webkit-transform:translateX(-8px);transform:translateX(-8px)}28%{-webkit-transform:translateX(-16px);transform:translateX(-16px)}44%{-webkit-transform:translateX(0);transform:translateX(0)}59%{-webkit-transform:translateX(-16px);transform:translateX(-16px)}73%{-webkit-transform:translateX(0);transform:translateX(0)}82%{-webkit-transform:translateX(16px);transform:translateX(16px)}94%{-webkit-transform:translateX(8px);transform:translateX(8px)}to{-webkit-transform:translateX(0);transform:translateX(0)}}@-webkit-keyframes f{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes f{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@media (prefers-color-scheme:dark){body:not([data-weui-theme='light']){--weui-BTN-DISABLED-FONT-COLOR:rgba(255,255,255,0.2)}}@media (prefers-color-scheme:dark){body:not([data-weui-theme='light']){--weui-BTN-DEFAULT-BG:rgba(255,255,255,0.08)}}@media (prefers-color-scheme:dark){body:not([data-weui-theme='light']){--weui-BTN-DEFAULT-COLOR:rgba(255,255,255,0.8)}}@media (prefers-color-scheme:dark){body:not([data-weui-theme='light']){--weui-BTN-DEFAULT-ACTIVE-BG:rgba(122,122,122,0.1536)}}@media (prefers-color-scheme:dark){body:not([data-weui-theme='light']){--weui-DIALOG-LINE-COLOR:rgba(255,255,255,0.1)}}@media (prefers-color-scheme:dark){body:not([data-weui-theme='light']){--weui-BG-0:#111;--weui-BG-1:#1e1e1e;--weui-BG-2:#191919;--weui-BG-3:#202020;--weui-BG-4:#404040;--weui-BG-5:#2c2c2c;--weui-FG-0:rgba(255,255,255,0.8);--weui-FG-HALF:rgba(255,255,255,0.6);--weui-FG-1:rgba(255,255,255,0.5);--weui-FG-2:rgba(255,255,255,0.3);--weui-FG-3:rgba(255,255,255,0.05);--weui-RED:#fa5151;--weui-ORANGE:#c87d2f;--weui-YELLOW:#cc9c00;--weui-GREEN:#74a800;--weui-LIGHTGREEN:#3eb575;--weui-BRAND:#07c160;--weui-BLUE:#10aeff;--weui-INDIGO:#1196ff;--weui-PURPLE:#8183ff;--weui-WHITE:rgba(255,255,255,0.8);--weui-LINK:#7d90a9;--weui-TEXTGREEN:#259c5c;--weui-FG:white;--weui-BG:black;--weui-TAG-TEXT-ORANGE:rgba(250,157,59,0.6);--weui-TAG-BACKGROUND-ORANGE:rgba(250,157,59,0.1);--weui-TAG-TEXT-GREEN:rgba(6,174,86,0.6);--weui-TAG-BACKGROUND-GREEN:rgba(6,174,86,0.1);--weui-TAG-TEXT-BLUE:rgba(16,174,255,0.6);--weui-TAG-BACKGROUND-BLUE:rgba(16,174,255,0.1);--weui-TAG-TEXT-BLACK:rgba(255,255,255,0.5);--weui-TAG-BACKGROUND-BLACK:rgba(255,255,255,0.05)}}@media (prefers-color-scheme:dark){body:not([data-weui-theme='light']){--weui-BG-COLOR-ACTIVE:#282828}}.weui-btn__word-wrp{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;position:relative;right:2px}.weui-btn__word-wrp:active{opacity:.5}.weui_right_arrow{display:inline-block;vertical-align:middle;font-size:10px;width:1em;height:2em;margin-left:4px;background-size:cover;background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='20' viewBox='0 0 10 20'%3E  %3Cpath fill-opacity='.5' fill-rule='evenodd' d='M2.045 5.484l.884-.884 4.816 4.816a.83.83 0 0 1 0 1.177l-4.816 4.816-.884-.884 4.52-4.52-4.52-4.521z'/%3E%3C/svg%3E")}@media (prefers-color-scheme:dark){.weui_right_arrow{background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='20' viewBox='0 0 10 20'%3E  %3Cpath fill='%23FFFFFF' fill-opacity='.5' fill-rule='evenodd' d='M2.045 5.484l.884-.884 4.816 4.816a.83.83 0 0 1 0 1.177l-4.816 4.816-.884-.884 4.52-4.52-4.52-4.521z'/%3E%3C/svg%3E")}}@media (prefers-color-scheme:dark){body:not([data-weui-theme='light']){--weui-BTN-DISABLED-FONT-COLOR:rgba(255,255,255,0.2)}}@media (prefers-color-scheme:dark){body:not([data-weui-theme='light']){--weui-BTN-DEFAULT-BG:rgba(255,255,255,0.08)}}@media (prefers-color-scheme:dark){body:not([data-weui-theme='light']){--weui-BTN-DEFAULT-COLOR:rgba(255,255,255,0.8)}}@media (prefers-color-scheme:dark){body:not([data-weui-theme='light']){--weui-BTN-DEFAULT-ACTIVE-BG:rgba(122,122,122,0.1536)}}@media (prefers-color-scheme:dark){body:not([data-weui-theme='light']){--weui-DIALOG-LINE-COLOR:rgba(255,255,255,0.1)}}@media (prefers-color-scheme:dark){body:not([data-weui-theme='light']){--weui-BG-0:#111;--weui-BG-1:#1e1e1e;--weui-BG-2:#191919;--weui-BG-3:#202020;--weui-BG-4:#404040;--weui-BG-5:#2c2c2c;--weui-FG-0:rgba(255,255,255,0.8);--weui-FG-HALF:rgba(255,255,255,0.6);--weui-FG-1:rgba(255,255,255,0.5);--weui-FG-2:rgba(255,255,255,0.3);--weui-FG-3:rgba(255,255,255,0.05);--weui-RED:#fa5151;--weui-ORANGE:#c87d2f;--weui-YELLOW:#cc9c00;--weui-GREEN:#74a800;--weui-LIGHTGREEN:#3eb575;--weui-BRAND:#07c160;--weui-BLUE:#10aeff;--weui-INDIGO:#1196ff;--weui-PURPLE:#8183ff;--weui-WHITE:rgba(255,255,255,0.8);--weui-LINK:#7d90a9;--weui-TEXTGREEN:#259c5c;--weui-FG:white;--weui-BG:black;--weui-TAG-TEXT-ORANGE:rgba(250,157,59,0.6);--weui-TAG-BACKGROUND-ORANGE:rgba(250,157,59,0.1);--weui-TAG-TEXT-GREEN:rgba(6,174,86,0.6);--weui-TAG-BACKGROUND-GREEN:rgba(6,174,86,0.1);--weui-TAG-TEXT-BLUE:rgba(16,174,255,0.6);--weui-TAG-BACKGROUND-BLUE:rgba(16,174,255,0.1);--weui-TAG-TEXT-BLACK:rgba(255,255,255,0.5);--weui-TAG-BACKGROUND-BLACK:rgba(255,255,255,0.05)}}@media (prefers-color-scheme:dark){body:not([data-weui-theme='light']){--weui-BG-COLOR-ACTIVE:#282828}}@-webkit-keyframes weuiAudioPlaying{30%{-webkit-mask-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E  %3Cpath fill='%2307C160' d='M7.97 15a4.251 4.251 0 0 0 1.23-3 4.25 4.25 0 0 0-1.23-3L5 12l2.97 3z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E  %3Cpath fill='%2307C160' d='M7.97 15a4.251 4.251 0 0 0 1.23-3 4.25 4.25 0 0 0-1.23-3L5 12l2.97 3z'/%3E%3C/svg%3E")}31%{-webkit-mask-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E  %3Cpath fill='%2307C160' d='M11.435 5.5A9.21 9.21 0 0 1 14.1 12a9.21 9.21 0 0 1-2.665 6.5L9.95 17A7.077 7.077 0 0 0 12 12a7.077 7.077 0 0 0-2.05-5l1.485-1.5zM7.97 9a4.251 4.251 0 0 1 1.23 3 4.25 4.25 0 0 1-1.23 3L5 12l2.97-3z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E  %3Cpath fill='%2307C160' d='M11.435 5.5A9.21 9.21 0 0 1 14.1 12a9.21 9.21 0 0 1-2.665 6.5L9.95 17A7.077 7.077 0 0 0 12 12a7.077 7.077 0 0 0-2.05-5l1.485-1.5zM7.97 9a4.251 4.251 0 0 1 1.23 3 4.25 4.25 0 0 1-1.23 3L5 12l2.97-3z'/%3E%3C/svg%3E")}61%{-webkit-mask-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E  %3Cpath fill='%2307C160' d='M11.435 5.5A9.21 9.21 0 0 1 14.1 12a9.21 9.21 0 0 1-2.665 6.5L9.95 17A7.077 7.077 0 0 0 12 12a7.077 7.077 0 0 0-2.05-5l1.485-1.5zM7.97 9a4.251 4.251 0 0 1 1.23 3 4.25 4.25 0 0 1-1.23 3L5 12l2.97-3z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E  %3Cpath fill='%2307C160' d='M11.435 5.5A9.21 9.21 0 0 1 14.1 12a9.21 9.21 0 0 1-2.665 6.5L9.95 17A7.077 7.077 0 0 0 12 12a7.077 7.077 0 0 0-2.05-5l1.485-1.5zM7.97 9a4.251 4.251 0 0 1 1.23 3 4.25 4.25 0 0 1-1.23 3L5 12l2.97-3z'/%3E%3C/svg%3E")}62%{-webkit-mask-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E  %3Cpath fill='%2307C160' d='M14.9 2A14.17 14.17 0 0 1 19 12a14.17 14.17 0 0 1-4.1 10l-1.485-1.5A12.036 12.036 0 0 0 16.9 12c0-3.233-1.267-6.259-3.485-8.5L14.899 2zm-3.465 3.5A9.21 9.21 0 0 1 14.1 12a9.21 9.21 0 0 1-2.665 6.5L9.95 17A7.077 7.077 0 0 0 12 12a7.077 7.077 0 0 0-2.05-5l1.485-1.5zM7.97 9a4.251 4.251 0 0 1 1.23 3 4.25 4.25 0 0 1-1.23 3L5 12l2.97-3z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E  %3Cpath fill='%2307C160' d='M14.9 2A14.17 14.17 0 0 1 19 12a14.17 14.17 0 0 1-4.1 10l-1.485-1.5A12.036 12.036 0 0 0 16.9 12c0-3.233-1.267-6.259-3.485-8.5L14.899 2zm-3.465 3.5A9.21 9.21 0 0 1 14.1 12a9.21 9.21 0 0 1-2.665 6.5L9.95 17A7.077 7.077 0 0 0 12 12a7.077 7.077 0 0 0-2.05-5l1.485-1.5zM7.97 9a4.251 4.251 0 0 1 1.23 3 4.25 4.25 0 0 1-1.23 3L5 12l2.97-3z'/%3E%3C/svg%3E")}100%{-webkit-mask-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E  %3Cpath fill='%2307C160' d='M14.9 2A14.17 14.17 0 0 1 19 12a14.17 14.17 0 0 1-4.1 10l-1.485-1.5A12.036 12.036 0 0 0 16.9 12c0-3.233-1.267-6.259-3.485-8.5L14.899 2zm-3.465 3.5A9.21 9.21 0 0 1 14.1 12a9.21 9.21 0 0 1-2.665 6.5L9.95 17A7.077 7.077 0 0 0 12 12a7.077 7.077 0 0 0-2.05-5l1.485-1.5zM7.97 9a4.251 4.251 0 0 1 1.23 3 4.25 4.25 0 0 1-1.23 3L5 12l2.97-3z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E  %3Cpath fill='%2307C160' d='M14.9 2A14.17 14.17 0 0 1 19 12a14.17 14.17 0 0 1-4.1 10l-1.485-1.5A12.036 12.036 0 0 0 16.9 12c0-3.233-1.267-6.259-3.485-8.5L14.899 2zm-3.465 3.5A9.21 9.21 0 0 1 14.1 12a9.21 9.21 0 0 1-2.665 6.5L9.95 17A7.077 7.077 0 0 0 12 12a7.077 7.077 0 0 0-2.05-5l1.485-1.5zM7.97 9a4.251 4.251 0 0 1 1.23 3 4.25 4.25 0 0 1-1.23 3L5 12l2.97-3z'/%3E%3C/svg%3E")}}@keyframes weuiAudioPlaying{30%{-webkit-mask-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E  %3Cpath fill='%2307C160' d='M7.97 15a4.251 4.251 0 0 0 1.23-3 4.25 4.25 0 0 0-1.23-3L5 12l2.97 3z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E  %3Cpath fill='%2307C160' d='M7.97 15a4.251 4.251 0 0 0 1.23-3 4.25 4.25 0 0 0-1.23-3L5 12l2.97 3z'/%3E%3C/svg%3E")}31%{-webkit-mask-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E  %3Cpath fill='%2307C160' d='M11.435 5.5A9.21 9.21 0 0 1 14.1 12a9.21 9.21 0 0 1-2.665 6.5L9.95 17A7.077 7.077 0 0 0 12 12a7.077 7.077 0 0 0-2.05-5l1.485-1.5zM7.97 9a4.251 4.251 0 0 1 1.23 3 4.25 4.25 0 0 1-1.23 3L5 12l2.97-3z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E  %3Cpath fill='%2307C160' d='M11.435 5.5A9.21 9.21 0 0 1 14.1 12a9.21 9.21 0 0 1-2.665 6.5L9.95 17A7.077 7.077 0 0 0 12 12a7.077 7.077 0 0 0-2.05-5l1.485-1.5zM7.97 9a4.251 4.251 0 0 1 1.23 3 4.25 4.25 0 0 1-1.23 3L5 12l2.97-3z'/%3E%3C/svg%3E")}61%{-webkit-mask-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E  %3Cpath fill='%2307C160' d='M11.435 5.5A9.21 9.21 0 0 1 14.1 12a9.21 9.21 0 0 1-2.665 6.5L9.95 17A7.077 7.077 0 0 0 12 12a7.077 7.077 0 0 0-2.05-5l1.485-1.5zM7.97 9a4.251 4.251 0 0 1 1.23 3 4.25 4.25 0 0 1-1.23 3L5 12l2.97-3z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E  %3Cpath fill='%2307C160' d='M11.435 5.5A9.21 9.21 0 0 1 14.1 12a9.21 9.21 0 0 1-2.665 6.5L9.95 17A7.077 7.077 0 0 0 12 12a7.077 7.077 0 0 0-2.05-5l1.485-1.5zM7.97 9a4.251 4.251 0 0 1 1.23 3 4.25 4.25 0 0 1-1.23 3L5 12l2.97-3z'/%3E%3C/svg%3E")}62%{-webkit-mask-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E  %3Cpath fill='%2307C160' d='M14.9 2A14.17 14.17 0 0 1 19 12a14.17 14.17 0 0 1-4.1 10l-1.485-1.5A12.036 12.036 0 0 0 16.9 12c0-3.233-1.267-6.259-3.485-8.5L14.899 2zm-3.465 3.5A9.21 9.21 0 0 1 14.1 12a9.21 9.21 0 0 1-2.665 6.5L9.95 17A7.077 7.077 0 0 0 12 12a7.077 7.077 0 0 0-2.05-5l1.485-1.5zM7.97 9a4.251 4.251 0 0 1 1.23 3 4.25 4.25 0 0 1-1.23 3L5 12l2.97-3z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E  %3Cpath fill='%2307C160' d='M14.9 2A14.17 14.17 0 0 1 19 12a14.17 14.17 0 0 1-4.1 10l-1.485-1.5A12.036 12.036 0 0 0 16.9 12c0-3.233-1.267-6.259-3.485-8.5L14.899 2zm-3.465 3.5A9.21 9.21 0 0 1 14.1 12a9.21 9.21 0 0 1-2.665 6.5L9.95 17A7.077 7.077 0 0 0 12 12a7.077 7.077 0 0 0-2.05-5l1.485-1.5zM7.97 9a4.251 4.251 0 0 1 1.23 3 4.25 4.25 0 0 1-1.23 3L5 12l2.97-3z'/%3E%3C/svg%3E")}100%{-webkit-mask-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E  %3Cpath fill='%2307C160' d='M14.9 2A14.17 14.17 0 0 1 19 12a14.17 14.17 0 0 1-4.1 10l-1.485-1.5A12.036 12.036 0 0 0 16.9 12c0-3.233-1.267-6.259-3.485-8.5L14.899 2zm-3.465 3.5A9.21 9.21 0 0 1 14.1 12a9.21 9.21 0 0 1-2.665 6.5L9.95 17A7.077 7.077 0 0 0 12 12a7.077 7.077 0 0 0-2.05-5l1.485-1.5zM7.97 9a4.251 4.251 0 0 1 1.23 3 4.25 4.25 0 0 1-1.23 3L5 12l2.97-3z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E  %3Cpath fill='%2307C160' d='M14.9 2A14.17 14.17 0 0 1 19 12a14.17 14.17 0 0 1-4.1 10l-1.485-1.5A12.036 12.036 0 0 0 16.9 12c0-3.233-1.267-6.259-3.485-8.5L14.899 2zm-3.465 3.5A9.21 9.21 0 0 1 14.1 12a9.21 9.21 0 0 1-2.665 6.5L9.95 17A7.077 7.077 0 0 0 12 12a7.077 7.077 0 0 0-2.05-5l1.485-1.5zM7.97 9a4.251 4.251 0 0 1 1.23 3 4.25 4.25 0 0 1-1.23 3L5 12l2.97-3z'/%3E%3C/svg%3E")}}.reward_area{box-sizing:border-box;margin:0 auto;padding:28px 5% 16px;line-height:1.4;color:rgba(0,0,0,0.9)}.reward_qrcode_area{margin:38px 0 20px;padding:30px 20px;font-size:14px;border:1px solid #ebebeb}@supports (-webkit-overflow-scrolling:touch){.reward_button{font-weight:700}}.rich_media_extra{position:relative}.top_banner{background-color:#fff}@-webkit-keyframes weuiLoading{0%{-webkit-transform:rotate3d(0,0,1,0deg)}100%{-webkit-transform:rotate3d(0,0,1,360deg)}}@keyframes weuiLoading{0%{-webkit-transform:rotate3d(0,0,1,0deg)}100%{-webkit-transform:rotate3d(0,0,1,360deg)}}.mpda_bottom_container{position:relative}a,button{cursor:pointer}@-webkit-keyframes slidein{from{-webkit-transform:translateX(-50%);transform:translateX(-50%)}to{-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes slidein{from{-webkit-transform:translateX(-50%);transform:translateX(-50%)}to{-webkit-transform:translateX(0);transform:translateX(0)}}.weui-desktop-popover{white-space:normal;word-wrap:break-word;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;z-index:500;color:#353535;line-height:1.6;background:#fff;border-radius:2px}.weui-desktop-popover:before{content:" ";width:8px;height:8px;background-color:#fff;box-shadow:0 2px 10px 0 #d4d4d4;transform:matrix(0.71,0.71,-0.71,0.71,0,0);-ms-transform:matrix(0.71,0.71,-0.71,0.71,0,0);-webkit-transform:matrix(0.71,0.71,-0.71,0.71,0,0);position:absolute}.weui-desktop-popover:after{content:" ";background-color:#fff;position:absolute}.weui-desktop-popover_img-text{text-align:center}.weui-desktop-popover_pos-up-center{margin-top:16px}.weui-desktop-popover_pos-up-left:before,.weui-desktop-popover_pos-up-center:before,.weui-desktop-popover_pos-up-right:before{top:-4px}.weui-desktop-popover_pos-up-left:after,.weui-desktop-popover_pos-up-center:after,.weui-desktop-popover_pos-up-right:after{height:10px;top:0;left:0;right:0}.weui-desktop-popover_pos-up-center:before,.weui-desktop-popover_pos-down-center:before{margin-left:-4px}.weui-desktop-popover{position:absolute;padding:14px;box-shadow:none;border:1px solid #d9dadc;width:182px;box-sizing:border-box}.weui-desktop-popover:before{box-shadow:none;border:1px solid #d9dadc}.function_hd{padding:16px 16px 0;font-size:14px;font-weight:500;line-height:1.35;color:rgba(0,0,0,0.3)}.function_mod{background:#fff;border-radius:8px}@media (prefers-color-scheme:dark){.function_hd{color:rgba(255,255,255,0.3)}.function_mod{background:#191919}}.wx_follow_container:not(:empty)+.related_container:not(:empty) .function_mod{margin-top:4px!important}.mpda_bottom_container:not(:empty){margin-top:4px}.wx_follow_container:empty~.related_container:empty~.mpda_bottom_container{margin-top:0}.mask_ellipsis_wrp{overflow:hidden;height:calc(2 * 1.4em)}.mask_ellipsis_placeholder{width:50%;height:calc(2 * 1.4em + 1px)}.mask_ellipsis{width:200%;line-height:1.4}.mask_ellipsis_text,.mask_ellipsis_placeholder,.mask_ellipsis_extra{float:left}.mask_ellipsis_text{width:50%}.mask_ellipsis_extra{-webkit-transform:translate(-100%,-100%);transform:translate(-100%,-100%)}.mask_ellipsis_extra{min-width:5.6em;text-align:right;background:-webkit-gradient(linear,left top,right top,from(rgba(255,255,255,0)),color-stop(50%,#fff));background:linear-gradient(to right,rgba(255,255,255,0),#fff 50%)}@media (prefers-color-scheme:dark){.mask_ellipsis_extra{background:-webkit-gradient(linear,left top,right top,from(rgba(25,25,25,0)),color-stop(50%,#191919));background:linear-gradient(to right,rgba(25,25,25,0),#191919 50%)}}.related_container{padding-left:8px;padding-right:8px}.relate_article_list .weui-media-box_appmsg{min-height:4.5em;padding-top:1em;padding-bottom:1em}.relate_article_list .weui-media-box_appmsg .weui-media-box__ft{margin-left:12px;border-radius:1px;background-color:#ededed;width:64px;height:64px;background-size:cover;background-position:50% 50%;background-repeat:no-repeat}.relate_article_list .weui-media-box_appmsg:before{right:92px}.relate_article_list .weui-media-box__info{overflow:visible;margin-top:.5em;font-size:14px;color:rgba(0,0,0,0.3);padding-bottom:0;line-height:1.3;height:18px;position:relative;padding-right:28px}.relate_article_list .weui-media-box__info__inner{display:inline-block;max-width:100%}.relate_article_list .weui-media-box__info__meta{float:right}.ellipsis_relate_title{font-size:16px}.relate_article_index_list .weui-media-box_appmsg:last-child{padding-bottom:16px}.relate_profile.relate_profile{overflow:hidden}.relate_profile .weui-media-box__info__meta{float:none}.relate_profile_nickname{width:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal;display:block}.relate_article_opr{position:absolute;bottom:2px;right:0;font-size:0}.dislike_btn{display:inline-block;vertical-align:middle;font-size:10px;text-indent:-999em;width:2em;height:1.4em;color:rgba(0,0,0,0.2);-webkit-mask:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='14' viewBox='0 0 20 14'%3E  %3Cg fill='none' fill-rule='evenodd'%3E    %3Crect width='19.5' height='13.5' x='.25' y='.25' stroke='%23D7D7D7' stroke-width='.5' rx='6.75'/%3E    %3Cpath fill='%23D7D7D7' d='M10.02 6.354l2.334-2.334.666.667-2.333 2.333 2.333 2.334-.666.666-2.334-2.333-2.333 2.333-.667-.666L9.354 7.02 7.02 4.687l.667-.667 2.333 2.334z'/%3E    %3Cpath d='M0 0h20v14H0z'/%3E  %3C/g%3E%3C/svg%3E") no-repeat 50% 50%;-webkit-mask-size:cover;background-color:currentColor}.dislike_btn:active{color:#ebebeb}.feedback_dialog_wrp{opacity:0}.feedback_dialog{position:absolute;left:8px;right:-68px;box-sizing:border-box;background-color:#fff;border-radius:8px;padding:16px;margin-top:12px;z-index:5000;-webkit-transition:-webkit-transform .15s cubic-bezier(0.175,0.885,0.32,1.1);transition:-webkit-transform .15s cubic-bezier(0.175,0.885,0.32,1.1);transition:transform .15s cubic-bezier(0.175,0.885,0.32,1.1);transition:transform .15s cubic-bezier(0.175,0.885,0.32,1.1),-webkit-transform .15s cubic-bezier(0.175,0.885,0.32,1.1);-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:80% 0;transform-origin:80% 0}.feedback_dialog:before{content:"";display:inline-block;width:0;height:0;border-width:6px;border-style:dashed;border-color:transparent;border-top-width:0;border-bottom-color:#fff;border-bottom-style:solid;position:absolute;right:72px;top:-6px}.feedback_dialog_hd{-webkit-box-align:center;-webkit-align-items:center;align-items:center}.feedback_dialog_title{padding-right:16px;word-wrap:break-word;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;font-size:17px;font-weight:700;line-height:1.4;color:rgba(0,0,0,0.9)}.feedback_dialog_bd{padding-top:4px}.feedback_tag_list{font-size:0}.feedback_tag_item{margin-right:12px;margin-top:12px;display:inline-block;vertical-align:middle;line-height:2.57;font-size:14px;width:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal;max-width:100%;padding:0 .85em;border-radius:4px;box-sizing:border-box;background-color:#f7f7f7;color:rgba(0,0,0,0.9)}.relate_mod_transition{-webkit-transition:all .5s;font-size:16px}@-webkit-keyframes flash{0%{opacity:.3}100%{opacity:1}}@keyframes flash{0%{opacity:.3}100%{opacity:1}}@media screen and (min-width:400px){.feedback_dialog{left:auto;width:320px}}.rich_media_extra_discuss{padding-top:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}@-webkit-keyframes newDiscuss{0%{opacity:0}100%{opacity:1}}@keyframes newDiscuss{0%{opacity:0}100%{opacity:1}}@supports (-apple-trailing-word:auto){.discuss_message .wx_folder_btn{bottom:-1px}}.comment_primary_emotion_panel_wrp{position:absolute;z-index:5000;padding-top:8px;padding-bottom:16px}@media screen and (min-width:1024px){.function_hd{padding-left:24px;padding-right:24px}.function_mod .weui-media-box{padding-left:24px;padding-right:24px}.function_mod .weui-media-box:before{left:24px}.relate_article_list .weui-media-box_appmsg:before{right:100px}}@media screen and (max-width:1023px){.profile_container{display:none!important}}@media (prefers-color-scheme:dark){.dislike_btn{color:rgba(255,255,255,0.2)}.dislike_btn:active{color:rgba(59,59,59,0.65)}.feedback_dialog{background:#2c2c2c;color:rgba(255,255,255,0.8)}.feedback_dialog:before{border-bottom-color:#2c2c2c}.feedback_dialog_title{color:rgba(255,255,255,0.8)}.feedback_tag_item{color:rgba(255,255,255,0.8);background:rgba(255,255,255,0.1)}}@media (prefers-color-scheme:dark){.weui-btn_disabled.weui-btn_disabled{background-color:rgba(255,255,255,0.08);color:rgba(255,255,255,0.2)}.like_comment_wrp:before,.like_comment_wrp:after{border-bottom-color:rgba(51,51,51,0.9);right:16px}.weui-media-box.weui-media-box:before{border-color:rgba(255,255,255,0.08)}.reward_area{color:rgba(255,255,255,0.8)}.weui-media-box__info.weui-media-box__info{color:rgba(255,255,255,0.3)}}.not_in_mm .rich_media_meta_list{position:relative;z-index:1}.not_in_mm .rich_media_content{position:relative}.not_in_mm .profile_container{width:535px;position:absolute;top:100%;left:0;margin-top:10px;font-size:14px}.not_in_mm .rich_media_inner{position:relative}.not_in_mm .qr_code_pc_outer{display:none!important;position:fixed;left:0;right:0;top:20px;color:#717375;text-align:center}.not_in_mm .qr_code_pc_inner{position:relative;width:740px;margin-left:auto;margin-right:auto}.not_in_mm .qr_code_pc{position:absolute;right:-140px;top:0;width:140px;padding:16px;border:1px solid #d9dadc;background-color:#fff;word-wrap:break-word;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto}.not_in_mm .qr_code_pc p{font-size:14px;line-height:20px}.not_in_mm .qr_code_pc_img{width:102px;height:102px}@media screen and (min-width:1024px){.not_in_mm .qr_code_pc_outer{display:block!important;top:32px}}@media (prefers-color-scheme:dark){.not_in_mm .qr_code_pc_outer{color:rgba(255,255,255,0.5)}.not_in_mm .qr_code_pc{background-color:#2c2c2c;border-color:rgba(255,255,255,0.05)}}.not_in_mm .qr_code_pc{box-sizing:border-box}@media (prefers-color-scheme:dark){body:not([data-weui-theme='light']){--weui-BTN-DISABLED-FONT-COLOR:rgba(255,255,255,0.2)}}@media (prefers-color-scheme:dark){body:not([data-weui-theme='light']){--weui-BTN-DEFAULT-BG:rgba(255,255,255,0.08)}}@media (prefers-color-scheme:dark){body:not([data-weui-theme='light']){--weui-BTN-DEFAULT-COLOR:rgba(255,255,255,0.8)}}@media (prefers-color-scheme:dark){body:not([data-weui-theme='light']){--weui-BTN-DEFAULT-ACTIVE-BG:rgba(122,122,122,0.1536)}}@media (prefers-color-scheme:dark){body:not([data-weui-theme='light']){--weui-DIALOG-LINE-COLOR:rgba(255,255,255,0.1)}}@media (prefers-color-scheme:dark){body:not([data-weui-theme='light']){--weui-BG-0:#111;--weui-BG-1:#1e1e1e;--weui-BG-2:#191919;--weui-BG-3:#202020;--weui-BG-4:#404040;--weui-BG-5:#2c2c2c;--weui-FG-0:rgba(255,255,255,0.8);--weui-FG-HALF:rgba(255,255,255,0.6);--weui-FG-1:rgba(255,255,255,0.5);--weui-FG-2:rgba(255,255,255,0.3);--weui-FG-3:rgba(255,255,255,0.05);--weui-RED:#fa5151;--weui-ORANGE:#c87d2f;--weui-YELLOW:#cc9c00;--weui-GREEN:#74a800;--weui-LIGHTGREEN:#3eb575;--weui-BRAND:#07c160;--weui-BLUE:#10aeff;--weui-INDIGO:#1196ff;--weui-PURPLE:#8183ff;--weui-WHITE:rgba(255,255,255,0.8);--weui-LINK:#7d90a9;--weui-TEXTGREEN:#259c5c;--weui-FG:white;--weui-BG:black;--weui-TAG-TEXT-ORANGE:rgba(250,157,59,0.6);--weui-TAG-BACKGROUND-ORANGE:rgba(250,157,59,0.1);--weui-TAG-TEXT-GREEN:rgba(6,174,86,0.6);--weui-TAG-BACKGROUND-GREEN:rgba(6,174,86,0.1);--weui-TAG-TEXT-BLUE:rgba(16,174,255,0.6);--weui-TAG-BACKGROUND-BLUE:rgba(16,174,255,0.1);--weui-TAG-TEXT-BLACK:rgba(255,255,255,0.5);--weui-TAG-BACKGROUND-BLACK:rgba(255,255,255,0.05)}}@media (prefers-color-scheme:dark){body:not([data-weui-theme='light']){--weui-BG-COLOR-ACTIVE:#282828}}.weui-flex{display:-webkit-box;display:-webkit-flex;display:flex}.weui-flex__item{-webkit-box-flex:1;-webkit-flex:1;flex:1;min-width:0}.weui-media-box{padding:16px;position:relative}.weui-media-box:before{content:" ";position:absolute;left:0;top:0;right:0;height:1px;border-top:1px solid rgba(0,0,0,0.1);border-top:1px solid var(--weui-FG-3);color:rgba(0,0,0,0.1);color:var(--weui-FG-3);-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-transform:scaleY(0.5);transform:scaleY(0.5);left:16px}.weui-media-box:first-child:before{display:none}.weui-media-box__info{list-style:none}.weui-media-box__info__meta{padding-right:1em}.weui-media-box_appmsg{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.weui-media-box_appmsg .weui-media-box__bd{-webkit-box-flex:1;-webkit-flex:1;flex:1;min-width:0}.weui-btn{position:relative;margin-left:auto;margin-right:auto;box-sizing:border-box;font-weight:700;text-align:center;text-decoration:none;border-radius:4px;-webkit-tap-highlight-color:rgba(0,0,0,0)}.weui-btn_primary:not(.weui-btn_disabled):visited{color:#fff}.weui-btn_primary:not(.weui-btn_disabled):active{background-color:#06ae56;background-color:var(--weui-TAG-TEXT-GREEN)}.weui-btn_disabled{color:var(--weui-BTN-DISABLED-FONT-COLOR);background-color:var(--weui-BTN-DEFAULT-BG)}button.weui-btn{border-width:0;outline:0;-webkit-appearance:none}button.weui-btn:focus,input.weui-btn:focus{outline:0}button.weui-btn_mini{width:auto}.weui-btn_mini{display:inline-block;padding:0 .75em;line-height:2;font-size:16px}@-webkit-keyframes circleLoading{0%{-webkit-transform:rotate3d(0,0,1,0deg);transform:rotate3d(0,0,1,0deg)}100%{-webkit-transform:rotate3d(0,0,1,360deg);transform:rotate3d(0,0,1,360deg)}}@keyframes circleLoading{0%{-webkit-transform:rotate3d(0,0,1,0deg);transform:rotate3d(0,0,1,0deg)}100%{-webkit-transform:rotate3d(0,0,1,360deg);transform:rotate3d(0,0,1,360deg)}}@-webkit-keyframes weuiLoading{0%{-webkit-transform:rotate3d(0,0,1,0deg);transform:rotate3d(0,0,1,0deg)}100%{-webkit-transform:rotate3d(0,0,1,360deg);transform:rotate3d(0,0,1,360deg)}}@keyframes weuiLoading{0%{-webkit-transform:rotate3d(0,0,1,0deg);transform:rotate3d(0,0,1,0deg)}100%{-webkit-transform:rotate3d(0,0,1,360deg);transform:rotate3d(0,0,1,360deg)}}body{--weui-BTN-DISABLED-FONT-COLOR:rgba(0,0,0,0.2)}@media (prefers-color-scheme:dark){body:not([data-weui-theme='light']){--weui-BTN-DISABLED-FONT-COLOR:rgba(255,255,255,0.2)}}body{--weui-BTN-DEFAULT-BG:#f2f2f2}@media (prefers-color-scheme:dark){body:not([data-weui-theme='light']){--weui-BTN-DEFAULT-BG:rgba(255,255,255,0.08)}}body{--weui-BTN-DEFAULT-COLOR:#06ae56}@media (prefers-color-scheme:dark){body:not([data-weui-theme='light']){--weui-BTN-DEFAULT-COLOR:rgba(255,255,255,0.8)}}body{--weui-BTN-DEFAULT-ACTIVE-BG:#e6e6e6}@media (prefers-color-scheme:dark){body:not([data-weui-theme='light']){--weui-BTN-DEFAULT-ACTIVE-BG:rgba(122,122,122,0.1536)}}body{--weui-DIALOG-LINE-COLOR:rgba(0,0,0,0.1)}@media (prefers-color-scheme:dark){body:not([data-weui-theme='light']){--weui-DIALOG-LINE-COLOR:rgba(255,255,255,0.1)}}body{--weui-BG-0:#ededed;--weui-BG-1:#f7f7f7;--weui-BG-2:#fff;--weui-BG-3:#f7f7f7;--weui-BG-4:#4c4c4c;--weui-BG-5:#fff;--weui-FG-0:rgba(0,0,0,0.9);--weui-FG-HALF:rgba(0,0,0,0.9);--weui-FG-1:rgba(0,0,0,0.5);--weui-FG-2:rgba(0,0,0,0.3);--weui-FG-3:rgba(0,0,0,0.1);--weui-RED:#fa5151;--weui-ORANGE:#fa9d3b;--weui-YELLOW:#ffc300;--weui-GREEN:#91d300;--weui-LIGHTGREEN:#95ec69;--weui-BRAND:#07c160;--weui-BLUE:#10aeff;--weui-INDIGO:#1485ee;--weui-PURPLE:#6467f0;--weui-WHITE:#fff;--weui-LINK:#576b95;--weui-TEXTGREEN:#06ae56;--weui-FG:black;--weui-BG:white;--weui-TAG-TEXT-ORANGE:#fa9d3b;--weui-TAG-BACKGROUND-ORANGE:rgba(250,157,59,0.1);--weui-TAG-TEXT-GREEN:#06ae56;--weui-TAG-BACKGROUND-GREEN:rgba(6,174,86,0.1);--weui-TAG-TEXT-BLUE:#10aeff;--weui-TAG-BACKGROUND-BLUE:rgba(16,174,255,0.1);--weui-TAG-TEXT-BLACK:rgba(0,0,0,0.5);--weui-TAG-BACKGROUND-BLACK:rgba(0,0,0,0.05)}@media (prefers-color-scheme:dark){body:not([data-weui-theme='light']){--weui-BG-0:#111;--weui-BG-1:#1e1e1e;--weui-BG-2:#191919;--weui-BG-3:#202020;--weui-BG-4:#404040;--weui-BG-5:#2c2c2c;--weui-FG-0:rgba(255,255,255,0.8);--weui-FG-HALF:rgba(255,255,255,0.6);--weui-FG-1:rgba(255,255,255,0.5);--weui-FG-2:rgba(255,255,255,0.3);--weui-FG-3:rgba(255,255,255,0.05);--weui-RED:#fa5151;--weui-ORANGE:#c87d2f;--weui-YELLOW:#cc9c00;--weui-GREEN:#74a800;--weui-LIGHTGREEN:#3eb575;--weui-BRAND:#07c160;--weui-BLUE:#10aeff;--weui-INDIGO:#1196ff;--weui-PURPLE:#8183ff;--weui-WHITE:rgba(255,255,255,0.8);--weui-LINK:#7d90a9;--weui-TEXTGREEN:#259c5c;--weui-FG:white;--weui-BG:black;--weui-TAG-TEXT-ORANGE:rgba(250,157,59,0.6);--weui-TAG-BACKGROUND-ORANGE:rgba(250,157,59,0.1);--weui-TAG-TEXT-GREEN:rgba(6,174,86,0.6);--weui-TAG-BACKGROUND-GREEN:rgba(6,174,86,0.1);--weui-TAG-TEXT-BLUE:rgba(16,174,255,0.6);--weui-TAG-BACKGROUND-BLUE:rgba(16,174,255,0.1);--weui-TAG-TEXT-BLACK:rgba(255,255,255,0.5);--weui-TAG-BACKGROUND-BLACK:rgba(255,255,255,0.05)}}body{--weui-BG-COLOR-ACTIVE:#ececec}@media (prefers-color-scheme:dark){body:not([data-weui-theme='light']){--weui-BG-COLOR-ACTIVE:#282828}}@-webkit-keyframes weuiAudioPlaying{30%{-webkit-mask-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E  %3Cpath fill='%2307C160' d='M7.97 15a4.251 4.251 0 0 0 1.23-3 4.25 4.25 0 0 0-1.23-3L5 12l2.97 3z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E  %3Cpath fill='%2307C160' d='M7.97 15a4.251 4.251 0 0 0 1.23-3 4.25 4.25 0 0 0-1.23-3L5 12l2.97 3z'/%3E%3C/svg%3E")}31%{-webkit-mask-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E  %3Cpath fill='%2307C160' d='M11.435 5.5A9.21 9.21 0 0 1 14.1 12a9.21 9.21 0 0 1-2.665 6.5L9.95 17A7.077 7.077 0 0 0 12 12a7.077 7.077 0 0 0-2.05-5l1.485-1.5zM7.97 9a4.251 4.251 0 0 1 1.23 3 4.25 4.25 0 0 1-1.23 3L5 12l2.97-3z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E  %3Cpath fill='%2307C160' d='M11.435 5.5A9.21 9.21 0 0 1 14.1 12a9.21 9.21 0 0 1-2.665 6.5L9.95 17A7.077 7.077 0 0 0 12 12a7.077 7.077 0 0 0-2.05-5l1.485-1.5zM7.97 9a4.251 4.251 0 0 1 1.23 3 4.25 4.25 0 0 1-1.23 3L5 12l2.97-3z'/%3E%3C/svg%3E")}61%{-webkit-mask-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E  %3Cpath fill='%2307C160' d='M11.435 5.5A9.21 9.21 0 0 1 14.1 12a9.21 9.21 0 0 1-2.665 6.5L9.95 17A7.077 7.077 0 0 0 12 12a7.077 7.077 0 0 0-2.05-5l1.485-1.5zM7.97 9a4.251 4.251 0 0 1 1.23 3 4.25 4.25 0 0 1-1.23 3L5 12l2.97-3z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E  %3Cpath fill='%2307C160' d='M11.435 5.5A9.21 9.21 0 0 1 14.1 12a9.21 9.21 0 0 1-2.665 6.5L9.95 17A7.077 7.077 0 0 0 12 12a7.077 7.077 0 0 0-2.05-5l1.485-1.5zM7.97 9a4.251 4.251 0 0 1 1.23 3 4.25 4.25 0 0 1-1.23 3L5 12l2.97-3z'/%3E%3C/svg%3E")}62%{-webkit-mask-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E  %3Cpath fill='%2307C160' d='M14.9 2A14.17 14.17 0 0 1 19 12a14.17 14.17 0 0 1-4.1 10l-1.485-1.5A12.036 12.036 0 0 0 16.9 12c0-3.233-1.267-6.259-3.485-8.5L14.899 2zm-3.465 3.5A9.21 9.21 0 0 1 14.1 12a9.21 9.21 0 0 1-2.665 6.5L9.95 17A7.077 7.077 0 0 0 12 12a7.077 7.077 0 0 0-2.05-5l1.485-1.5zM7.97 9a4.251 4.251 0 0 1 1.23 3 4.25 4.25 0 0 1-1.23 3L5 12l2.97-3z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E  %3Cpath fill='%2307C160' d='M14.9 2A14.17 14.17 0 0 1 19 12a14.17 14.17 0 0 1-4.1 10l-1.485-1.5A12.036 12.036 0 0 0 16.9 12c0-3.233-1.267-6.259-3.485-8.5L14.899 2zm-3.465 3.5A9.21 9.21 0 0 1 14.1 12a9.21 9.21 0 0 1-2.665 6.5L9.95 17A7.077 7.077 0 0 0 12 12a7.077 7.077 0 0 0-2.05-5l1.485-1.5zM7.97 9a4.251 4.251 0 0 1 1.23 3 4.25 4.25 0 0 1-1.23 3L5 12l2.97-3z'/%3E%3C/svg%3E")}100%{-webkit-mask-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E  %3Cpath fill='%2307C160' d='M14.9 2A14.17 14.17 0 0 1 19 12a14.17 14.17 0 0 1-4.1 10l-1.485-1.5A12.036 12.036 0 0 0 16.9 12c0-3.233-1.267-6.259-3.485-8.5L14.899 2zm-3.465 3.5A9.21 9.21 0 0 1 14.1 12a9.21 9.21 0 0 1-2.665 6.5L9.95 17A7.077 7.077 0 0 0 12 12a7.077 7.077 0 0 0-2.05-5l1.485-1.5zM7.97 9a4.251 4.251 0 0 1 1.23 3 4.25 4.25 0 0 1-1.23 3L5 12l2.97-3z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E  %3Cpath fill='%2307C160' d='M14.9 2A14.17 14.17 0 0 1 19 12a14.17 14.17 0 0 1-4.1 10l-1.485-1.5A12.036 12.036 0 0 0 16.9 12c0-3.233-1.267-6.259-3.485-8.5L14.899 2zm-3.465 3.5A9.21 9.21 0 0 1 14.1 12a9.21 9.21 0 0 1-2.665 6.5L9.95 17A7.077 7.077 0 0 0 12 12a7.077 7.077 0 0 0-2.05-5l1.485-1.5zM7.97 9a4.251 4.251 0 0 1 1.23 3 4.25 4.25 0 0 1-1.23 3L5 12l2.97-3z'/%3E%3C/svg%3E")}}@keyframes weuiAudioPlaying{30%{-webkit-mask-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E  %3Cpath fill='%2307C160' d='M7.97 15a4.251 4.251 0 0 0 1.23-3 4.25 4.25 0 0 0-1.23-3L5 12l2.97 3z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E  %3Cpath fill='%2307C160' d='M7.97 15a4.251 4.251 0 0 0 1.23-3 4.25 4.25 0 0 0-1.23-3L5 12l2.97 3z'/%3E%3C/svg%3E")}31%{-webkit-mask-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E  %3Cpath fill='%2307C160' d='M11.435 5.5A9.21 9.21 0 0 1 14.1 12a9.21 9.21 0 0 1-2.665 6.5L9.95 17A7.077 7.077 0 0 0 12 12a7.077 7.077 0 0 0-2.05-5l1.485-1.5zM7.97 9a4.251 4.251 0 0 1 1.23 3 4.25 4.25 0 0 1-1.23 3L5 12l2.97-3z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E  %3Cpath fill='%2307C160' d='M11.435 5.5A9.21 9.21 0 0 1 14.1 12a9.21 9.21 0 0 1-2.665 6.5L9.95 17A7.077 7.077 0 0 0 12 12a7.077 7.077 0 0 0-2.05-5l1.485-1.5zM7.97 9a4.251 4.251 0 0 1 1.23 3 4.25 4.25 0 0 1-1.23 3L5 12l2.97-3z'/%3E%3C/svg%3E")}61%{-webkit-mask-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E  %3Cpath fill='%2307C160' d='M11.435 5.5A9.21 9.21 0 0 1 14.1 12a9.21 9.21 0 0 1-2.665 6.5L9.95 17A7.077 7.077 0 0 0 12 12a7.077 7.077 0 0 0-2.05-5l1.485-1.5zM7.97 9a4.251 4.251 0 0 1 1.23 3 4.25 4.25 0 0 1-1.23 3L5 12l2.97-3z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E  %3Cpath fill='%2307C160' d='M11.435 5.5A9.21 9.21 0 0 1 14.1 12a9.21 9.21 0 0 1-2.665 6.5L9.95 17A7.077 7.077 0 0 0 12 12a7.077 7.077 0 0 0-2.05-5l1.485-1.5zM7.97 9a4.251 4.251 0 0 1 1.23 3 4.25 4.25 0 0 1-1.23 3L5 12l2.97-3z'/%3E%3C/svg%3E")}62%{-webkit-mask-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E  %3Cpath fill='%2307C160' d='M14.9 2A14.17 14.17 0 0 1 19 12a14.17 14.17 0 0 1-4.1 10l-1.485-1.5A12.036 12.036 0 0 0 16.9 12c0-3.233-1.267-6.259-3.485-8.5L14.899 2zm-3.465 3.5A9.21 9.21 0 0 1 14.1 12a9.21 9.21 0 0 1-2.665 6.5L9.95 17A7.077 7.077 0 0 0 12 12a7.077 7.077 0 0 0-2.05-5l1.485-1.5zM7.97 9a4.251 4.251 0 0 1 1.23 3 4.25 4.25 0 0 1-1.23 3L5 12l2.97-3z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E  %3Cpath fill='%2307C160' d='M14.9 2A14.17 14.17 0 0 1 19 12a14.17 14.17 0 0 1-4.1 10l-1.485-1.5A12.036 12.036 0 0 0 16.9 12c0-3.233-1.267-6.259-3.485-8.5L14.899 2zm-3.465 3.5A9.21 9.21 0 0 1 14.1 12a9.21 9.21 0 0 1-2.665 6.5L9.95 17A7.077 7.077 0 0 0 12 12a7.077 7.077 0 0 0-2.05-5l1.485-1.5zM7.97 9a4.251 4.251 0 0 1 1.23 3 4.25 4.25 0 0 1-1.23 3L5 12l2.97-3z'/%3E%3C/svg%3E")}100%{-webkit-mask-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E  %3Cpath fill='%2307C160' d='M14.9 2A14.17 14.17 0 0 1 19 12a14.17 14.17 0 0 1-4.1 10l-1.485-1.5A12.036 12.036 0 0 0 16.9 12c0-3.233-1.267-6.259-3.485-8.5L14.899 2zm-3.465 3.5A9.21 9.21 0 0 1 14.1 12a9.21 9.21 0 0 1-2.665 6.5L9.95 17A7.077 7.077 0 0 0 12 12a7.077 7.077 0 0 0-2.05-5l1.485-1.5zM7.97 9a4.251 4.251 0 0 1 1.23 3 4.25 4.25 0 0 1-1.23 3L5 12l2.97-3z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E  %3Cpath fill='%2307C160' d='M14.9 2A14.17 14.17 0 0 1 19 12a14.17 14.17 0 0 1-4.1 10l-1.485-1.5A12.036 12.036 0 0 0 16.9 12c0-3.233-1.267-6.259-3.485-8.5L14.899 2zm-3.465 3.5A9.21 9.21 0 0 1 14.1 12a9.21 9.21 0 0 1-2.665 6.5L9.95 17A7.077 7.077 0 0 0 12 12a7.077 7.077 0 0 0-2.05-5l1.485-1.5zM7.97 9a4.251 4.251 0 0 1 1.23 3 4.25 4.25 0 0 1-1.23 3L5 12l2.97-3z'/%3E%3C/svg%3E")}}html{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{line-height:1.6;font-size:16px}body,h1,p,ul{margin:0}body,html{-webkit-appearance:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}@media all and (orientation:portrait){@-webkit-keyframes opr_fade_out{0%{filter:alpha(opacity = 100);-moz-opacity:1;-khtml-opacity:1;opacity:1}100%{filter:alpha(opacity = 0);-moz-opacity:0;-khtml-opacity:0;opacity:0}}@-webkit-keyframes opr_fade_in{0%{filter:alpha(opacity = 0);-moz-opacity:0;-khtml-opacity:0;opacity:0}100%{bottom:0;filter:alpha(opacity = 100);-moz-opacity:1;-khtml-opacity:1;opacity:1}}}.tc{text-align:center}@-webkit-keyframes opr_fade_out{0%{filter:alpha(opacity = 100);-moz-opacity:1;-khtml-opacity:1;opacity:1}100%{filter:alpha(opacity = 0);-moz-opacity:0;-khtml-opacity:0;opacity:0}}@-webkit-keyframes opr_fade_in{0%{filter:alpha(opacity = 0);-moz-opacity:0;-khtml-opacity:0;opacity:0}100%{filter:alpha(opacity = 100);-moz-opacity:1;-khtml-opacity:1;opacity:1}}@-webkit-keyframes opacity-60-25-0-12{0%{opacity:.25}0.01%{opacity:.25}0.02%{opacity:1}60.01%{opacity:.25}100%{opacity:.25}}@-webkit-keyframes opacity-60-25-1-12{0%{opacity:.25}8.34333%{opacity:.25}8.35333%{opacity:1}68.3433%{opacity:.25}100%{opacity:.25}}@-webkit-keyframes opacity-60-25-2-12{0%{opacity:.25}16.6767%{opacity:.25}16.6867%{opacity:1}76.6767%{opacity:.25}100%{opacity:.25}}@-webkit-keyframes opacity-60-25-3-12{0%{opacity:.25}25.01%{opacity:.25}25.02%{opacity:1}85.01%{opacity:.25}100%{opacity:.25}}@-webkit-keyframes opacity-60-25-4-12{0%{opacity:.25}33.3433%{opacity:.25}33.3533%{opacity:1}93.3433%{opacity:.25}100%{opacity:.25}}@-webkit-keyframes opacity-60-25-5-12{0%{opacity:.270958333333333}41.6767%{opacity:.25}41.6867%{opacity:1}1.67667%{opacity:.25}100%{opacity:.270958333333333}}@-webkit-keyframes opacity-60-25-6-12{0%{opacity:.375125}50.01%{opacity:.25}50.02%{opacity:1}10.01%{opacity:.25}100%{opacity:.375125}}@-webkit-keyframes opacity-60-25-7-12{0%{opacity:.479291666666667}58.3433%{opacity:.25}58.3533%{opacity:1}18.3433%{opacity:.25}100%{opacity:.479291666666667}}@-webkit-keyframes opacity-60-25-8-12{0%{opacity:.583458333333333}66.6767%{opacity:.25}66.6867%{opacity:1}26.6767%{opacity:.25}100%{opacity:.583458333333333}}@-webkit-keyframes opacity-60-25-9-12{0%{opacity:.687625}75.01%{opacity:.25}75.02%{opacity:1}35.01%{opacity:.25}100%{opacity:.687625}}@-webkit-keyframes opacity-60-25-10-12{0%{opacity:.791791666666667}83.3433%{opacity:.25}83.3533%{opacity:1}43.3433%{opacity:.25}100%{opacity:.791791666666667}}@-webkit-keyframes opacity-60-25-11-12{0%{opacity:.895958333333333}91.6767%{opacity:.25}91.6867%{opacity:1}51.6767%{opacity:.25}100%{opacity:.895958333333333}}@-webkit-keyframes loading{0%{-webkit-transform:rotate3d(0,0,1,0deg)}100%{-webkit-transform:rotate3d(0,0,1,360deg)}}@keyframes loading{0%{-webkit-transform:rotate3d(0,0,1,0deg)}100%{-webkit-transform:rotate3d(0,0,1,360deg)}}@-webkit-keyframes animal{0%{transform:rotate(0deg);-ms-transform:rotate(0deg);-webkit-transform:rotate(0deg)}100%{transform:rotate(360deg);-ms-transform:rotate(360deg);-webkit-transform:rotate(360deg)}}@keyframes animal{0%{transform:rotate(0deg);-ms-transform:rotate(0deg);-webkit-transform:rotate(0deg)}100%{transform:rotate(360deg);-ms-transform:rotate(360deg);-webkit-transform:rotate(360deg)}}@-webkit-keyframes weuiProcessCircleRight{0%{-webkit-transform:rotate(-135deg)}50%,100%{-webkit-transform:rotate(45deg)}}@-webkit-keyframes weuiProcessCircleLeft{0%,50%{-webkit-transform:rotate(-135deg)}100%{-webkit-transform:rotate(45deg)}}@-webkit-keyframes itemFadeOut{0%{opacity:1}100%{opacity:0}}@keyframes itemFadeOut{0%{opacity:1}100%{opacity:0}}@-webkit-keyframes topTipsShowIn{0%{-webkit-transform:translateY(-80px);transform:translateY(-80px)}100%{-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes topTipsShowIn{0%{-webkit-transform:translateY(-80px);transform:translateY(-80px)}100%{-webkit-transform:translateY(0);transform:translateY(0)}}@-webkit-keyframes topTipsShowOut{0%{-webkit-transform:translateY(0);transform:translateY(0)}100%{-webkit-transform:translateY(-80px);transform:translateY(-80px)}}@keyframes topTipsShowOut{0%{-webkit-transform:translateY(0);transform:translateY(0)}100%{-webkit-transform:translateY(-80px);transform:translateY(-80px)}}@-webkit-keyframes videoLoading{0%{-webkit-transform:rotate3d(0,0,1,0deg)}100%{-webkit-transform:rotate3d(0,0,1,360deg)}}@keyframes videoLoading{0%{-webkit-transform:rotate3d(0,0,1,0deg)}100%{-webkit-transform:rotate3d(0,0,1,360deg)}}@-webkit-keyframes midAdShowIn{0%{-webkit-transform:translateX(100vw);transform:translateX(100vw);opacity:0}100%{-webkit-transform:translateX(0);transform:translateX(0);opacity:1}}@keyframes midAdShowIn{0%{-webkit-transform:translateX(100vw);transform:translateX(100vw);opacity:0}100%{-webkit-transform:translateX(0);transform:translateX(0);opacity:1}}@-webkit-keyframes quickPlay_1{0%,100%{background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='13' viewBox='0 0 11 13'%3E  %3Cpath fill='%23FFF' d='M10.634 5.85a.759.759 0 0 1 .075 1.248l-.075.051-9.479 5.74a.762.762 0 0 1-1.148-.545L0 12.24V.76A.76.76 0 0 1 1.063.063l.092.047 9.479 5.74z' opacity='1'/%3E%3C/svg%3E")}30%{background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='13' viewBox='0 0 11 13'%3E  %3Cpath fill='%23FFF' d='M10.634 5.85a.759.759 0 0 1 .075 1.248l-.075.051-9.479 5.74a.762.762 0 0 1-1.148-.545L0 12.24V.76A.76.76 0 0 1 1.063.063l.092.047 9.479 5.74z' opacity='.6'/%3E%3C/svg%3E")}60%{background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='13' viewBox='0 0 11 13'%3E  %3Cpath fill='%23FFF' d='M10.634 5.85a.759.759 0 0 1 .075 1.248l-.075.051-9.479 5.74a.762.762 0 0 1-1.148-.545L0 12.24V.76A.76.76 0 0 1 1.063.063l.092.047 9.479 5.74z' opacity='.3'/%3E%3C/svg%3E")}}@keyframes quickPlay_1{0%,100%{background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='13' viewBox='0 0 11 13'%3E  %3Cpath fill='%23FFF' d='M10.634 5.85a.759.759 0 0 1 .075 1.248l-.075.051-9.479 5.74a.762.762 0 0 1-1.148-.545L0 12.24V.76A.76.76 0 0 1 1.063.063l.092.047 9.479 5.74z' opacity='1'/%3E%3C/svg%3E")}30%{background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='13' viewBox='0 0 11 13'%3E  %3Cpath fill='%23FFF' d='M10.634 5.85a.759.759 0 0 1 .075 1.248l-.075.051-9.479 5.74a.762.762 0 0 1-1.148-.545L0 12.24V.76A.76.76 0 0 1 1.063.063l.092.047 9.479 5.74z' opacity='.6'/%3E%3C/svg%3E")}60%{background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='13' viewBox='0 0 11 13'%3E  %3Cpath fill='%23FFF' d='M10.634 5.85a.759.759 0 0 1 .075 1.248l-.075.051-9.479 5.74a.762.762 0 0 1-1.148-.545L0 12.24V.76A.76.76 0 0 1 1.063.063l.092.047 9.479 5.74z' opacity='.3'/%3E%3C/svg%3E")}}@-webkit-keyframes quickPlay_2{0%,100%{background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='13' viewBox='0 0 11 13'%3E  %3Cpath fill='%23FFF' d='M10.634 5.85a.759.759 0 0 1 .075 1.248l-.075.051-9.479 5.74a.762.762 0 0 1-1.148-.545L0 12.24V.76A.76.76 0 0 1 1.063.063l.092.047 9.479 5.74z' opacity='.6'/%3E%3C/svg%3E")}30%{background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='13' viewBox='0 0 11 13'%3E  %3Cpath fill='%23FFF' d='M10.634 5.85a.759.759 0 0 1 .075 1.248l-.075.051-9.479 5.74a.762.762 0 0 1-1.148-.545L0 12.24V.76A.76.76 0 0 1 1.063.063l.092.047 9.479 5.74z' opacity='1'/%3E%3C/svg%3E")}60%{background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='13' viewBox='0 0 11 13'%3E  %3Cpath fill='%23FFF' d='M10.634 5.85a.759.759 0 0 1 .075 1.248l-.075.051-9.479 5.74a.762.762 0 0 1-1.148-.545L0 12.24V.76A.76.76 0 0 1 1.063.063l.092.047 9.479 5.74z' opacity='.6'/%3E%3C/svg%3E")}}@keyframes quickPlay_2{0%,100%{background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='13' viewBox='0 0 11 13'%3E  %3Cpath fill='%23FFF' d='M10.634 5.85a.759.759 0 0 1 .075 1.248l-.075.051-9.479 5.74a.762.762 0 0 1-1.148-.545L0 12.24V.76A.76.76 0 0 1 1.063.063l.092.047 9.479 5.74z' opacity='.6'/%3E%3C/svg%3E")}30%{background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='13' viewBox='0 0 11 13'%3E  %3Cpath fill='%23FFF' d='M10.634 5.85a.759.759 0 0 1 .075 1.248l-.075.051-9.479 5.74a.762.762 0 0 1-1.148-.545L0 12.24V.76A.76.76 0 0 1 1.063.063l.092.047 9.479 5.74z' opacity='1'/%3E%3C/svg%3E")}60%{background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='13' viewBox='0 0 11 13'%3E  %3Cpath fill='%23FFF' d='M10.634 5.85a.759.759 0 0 1 .075 1.248l-.075.051-9.479 5.74a.762.762 0 0 1-1.148-.545L0 12.24V.76A.76.76 0 0 1 1.063.063l.092.047 9.479 5.74z' opacity='.6'/%3E%3C/svg%3E")}}@-webkit-keyframes quickPlay_3{0%,100%{background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='13' viewBox='0 0 11 13'%3E  %3Cpath fill='%23FFF' d='M10.634 5.85a.759.759 0 0 1 .075 1.248l-.075.051-9.479 5.74a.762.762 0 0 1-1.148-.545L0 12.24V.76A.76.76 0 0 1 1.063.063l.092.047 9.479 5.74z' opacity='.3'/%3E%3C/svg%3E")}30%{background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='13' viewBox='0 0 11 13'%3E  %3Cpath fill='%23FFF' d='M10.634 5.85a.759.759 0 0 1 .075 1.248l-.075.051-9.479 5.74a.762.762 0 0 1-1.148-.545L0 12.24V.76A.76.76 0 0 1 1.063.063l.092.047 9.479 5.74z' opacity='.6'/%3E%3C/svg%3E")}60%{background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='13' viewBox='0 0 11 13'%3E  %3Cpath fill='%23FFF' d='M10.634 5.85a.759.759 0 0 1 .075 1.248l-.075.051-9.479 5.74a.762.762 0 0 1-1.148-.545L0 12.24V.76A.76.76 0 0 1 1.063.063l.092.047 9.479 5.74z' opacity='1'/%3E%3C/svg%3E")}}@keyframes quickPlay_3{0%,100%{background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='13' viewBox='0 0 11 13'%3E  %3Cpath fill='%23FFF' d='M10.634 5.85a.759.759 0 0 1 .075 1.248l-.075.051-9.479 5.74a.762.762 0 0 1-1.148-.545L0 12.24V.76A.76.76 0 0 1 1.063.063l.092.047 9.479 5.74z' opacity='.3'/%3E%3C/svg%3E")}30%{background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='13' viewBox='0 0 11 13'%3E  %3Cpath fill='%23FFF' d='M10.634 5.85a.759.759 0 0 1 .075 1.248l-.075.051-9.479 5.74a.762.762 0 0 1-1.148-.545L0 12.24V.76A.76.76 0 0 1 1.063.063l.092.047 9.479 5.74z' opacity='.6'/%3E%3C/svg%3E")}60%{background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='13' viewBox='0 0 11 13'%3E  %3Cpath fill='%23FFF' d='M10.634 5.85a.759.759 0 0 1 .075 1.248l-.075.051-9.479 5.74a.762.762 0 0 1-1.148-.545L0 12.24V.76A.76.76 0 0 1 1.063.063l.092.047 9.479 5.74z' opacity='1'/%3E%3C/svg%3E")}}@supports (-webkit-overflow-scrolling:touch){.page_video.page_video .video_full-screen__sub-setting,.page_video.page_video .play_setting_mode{font-weight:500}}.album_read_card{overflow:hidden;margin-top:16px;font-size:14px;color:rgba(0,0,0,0.9);line-height:1.4}.album_read_card .weui-flex__item{min-width:0}.album_read_card .weui-btn__word-wrp{font-size:14px;color:rgba(0,0,0,0.5)}.album_read_card .weui-btn__word-wrp:before{content:"\00B7";margin-left:2px}.album_read_hd{padding:18px 16px;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;position:relative}.album_read_hd:active{opacity:.5}.album_read_source{width:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal;color:rgba(0,0,0,0.5)}.album_read_nav_item{position:relative;padding:4px 24px 20px}.album_read_nav_item:before{content:"";position:absolute;top:4px;bottom:20px;left:0;width:1px;background:-webkit-linear-gradient(top,rgba(0,0,0,0.03),rgba(0,0,0,0.05) 50%,rgba(0,0,0,0.03) 100%)}.album_read_nav_item:active .album_read_nav_inner{opacity:.5}.album_read_nav_item.album_read_nav_prev{text-align:left}.album_read_nav_item.album_read_nav_next{text-align:right}.album_read_nav_item:first-child:before{display:none}.album_read_nav_item:first-child:last-child{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;padding-top:14px;padding-bottom:32px}.album_read_nav_item:first-child:last-child:before{top:14px;bottom:32px}.album_read_nav_item:first-child:last-child .album_read_nav_btn:before,.album_read_nav_item:first-child:last-child .album_read_nav_btn:after{display:none}.album_read_nav_item:first-child:last-child .album_read_nav_inner{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.album_read_nav_item:first-child:last-child .album_read_nav_inner:before,.album_read_nav_item:first-child:last-child .album_read_nav_inner:after{content:"";display:inline-block;vertical-align:middle;font-size:10px;margin-top:-1px;width:1em;height:2em;-webkit-mask-size:cover;mask-size:cover;background-color:currentColor;-webkit-mask-image:url(data:image/svg+xml,%3Csvg%20width%3D%2212%22%20height%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M2.454%206.58l1.06-1.06%205.78%205.779a.996.996%200%20010%201.413l-5.78%205.779-1.06-1.061%205.425-5.425-5.425-5.424z%22%20fill%3D%22%23B2B2B2%22%20fill-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E);mask-image:url(data:image/svg+xml,%3Csvg%20width%3D%2212%22%20height%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M2.454%206.58l1.06-1.06%205.78%205.779a.996.996%200%20010%201.413l-5.78%205.779-1.06-1.061%205.425-5.425-5.425-5.424z%22%20fill%3D%22%23B2B2B2%22%20fill-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E)}.album_read_nav_item:first-child:last-child.album_read_nav_prev .album_read_nav_inner:before{transform:matrix(-1,0,0,-1,0,0);-ms-transform:matrix(-1,0,0,-1,0,0);-webkit-transform:matrix(-1,0,0,-1,0,0);margin-right:8px}.album_read_nav_item:first-child:last-child.album_read_nav_prev .album_read_nav_inner:after{display:none}.album_read_nav_item:first-child:last-child.album_read_nav_next .album_read_nav_inner:before{display:none}.album_read_nav_item:first-child:last-child.album_read_nav_next .album_read_nav_inner:after{margin-left:8px}.album_read_nav_item:first-child:last-child .album_read_nav_title{-webkit-line-clamp:1;margin-top:0;-webkit-box-flex:1;-webkit-flex:1;flex:1}.album_read_nav_item:first-child:last-child .album_read_nav_title:before{content:"\00B7";margin-left:4px;margin-right:4px}.album_read_nav_btn{display:block;color:rgba(0,0,0,0.9);font-weight:500}.album_read_nav_btn:before,.album_read_nav_btn:after{content:"";display:inline-block;vertical-align:middle;font-size:10px;margin-top:-0.2em;width:1em;height:2em;-webkit-mask-size:cover;mask-size:cover;background-color:currentColor;-webkit-mask-image:url(data:image/svg+xml,%3Csvg%20width%3D%2212%22%20height%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M2.454%206.58l1.06-1.06%205.78%205.779a.996.996%200%20010%201.413l-5.78%205.779-1.06-1.061%205.425-5.425-5.425-5.424z%22%20fill%3D%22%23B2B2B2%22%20fill-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E);mask-image:url(data:image/svg+xml,%3Csvg%20width%3D%2212%22%20height%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M2.454%206.58l1.06-1.06%205.78%205.779a.996.996%200%20010%201.413l-5.78%205.779-1.06-1.061%205.425-5.425-5.425-5.424z%22%20fill%3D%22%23B2B2B2%22%20fill-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E)}.album_read_nav_prev .album_read_nav_btn:before{transform:matrix(-1,0,0,-1,0,0);-ms-transform:matrix(-1,0,0,-1,0,0);-webkit-transform:matrix(-1,0,0,-1,0,0);margin-right:8px}.album_read_nav_prev .album_read_nav_btn:after{display:none}.album_read_nav_next .album_read_nav_btn:before{display:none}.album_read_nav_next .album_read_nav_btn:after{margin-left:8px}.album_read_nav_title{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;margin-top:8px;line-height:1.2}@media (prefers-color-scheme:dark){.album_read_card{color:rgba(255,255,255,0.8)}.album_read_card .weui-btn__word-wrp{color:rgba(255,255,255,0.5)}.album_read_bd:before{border-top-color:rgba(255,255,255,0.05)}.album_read_source{color:rgba(255,255,255,0.5)}.album_read_nav_item:before{background:-webkit-linear-gradient(top,rgba(255,255,255,0.03),rgba(255,255,255,0.05) 50%,rgba(255,255,255,0.03) 100%)}.album_read_nav_btn{color:rgba(255,255,255,0.8)}}</style><link rel="shortcut icon" type=image/x-icon href="" class=sf-hidden><style>.sf-hidden{display:none!important}</style><link rel=canonical href=https://mp.weixin.qq.com/s/Dwt4lkKR_PEnWRprLlvPVw><meta http-equiv=content-security-policy content="default-src 'none'; font-src 'self' data:; img-src 'self' data:; style-src 'unsafe-inline'; media-src 'self' data:; script-src 'unsafe-inline' data:;"></head>
 <body id=activity-detail class="zh_CN wx_wap_page appmsg_desktop_fontsize_2 mm_appmsg comment_feature discuss_tab appmsg_skin_default appmsg_style_default not_in_mm">
 
 
 
 
<div id=js_article class=rich_media wah-hotarea=click>
 
 <div id=js_top_ad_area class=top_banner></div>
 
 <div class=rich_media_inner>
 
 
 <div id=page-content class=rich_media_area_primary>
 <div class=rich_media_area_primary_inner>
 
 
 
 <div id=img-content class=rich_media_wrp>
 
 <h1 class=rich_media_title id=activity-name>
 
 
 
如何通过3行Python代码计算最大回撤
 </h1>
 <div id=meta_content class=rich_media_meta_list>
 <span id=copyright_logo class="rich_media_meta icon_appmsg_tag appmsg_title_tag weui-wa-hotarea" wah-hotarea=click>原创</span>
 <span class="rich_media_meta rich_media_meta_text">
 <span role=link id=js_author_name class=weui-wa-hotarea datarewardsn datatimestamp datacanreward=0 wah-hotarea=click>邢不行</span>
 </span>
 
 <span class="rich_media_meta rich_media_meta_nickname" id=profileBt wah-hotarea=click>
 <a href=https://mp.weixin.qq.com/s/Dwt4lkKR_PEnWRprLlvPVw class=weui-wa-hotarea id=js_name>
 邢不行 </a>
 <div id=js_profile_qrcode class=profile_container style=display:none wah-hotarea=click>
 
 
 </div>
 </span>
 <em id=publish_time class="rich_media_meta rich_media_meta_text">2018-12-27</em>
 </div>
 
 <div id=js_tags class=article-tag__list data-len=2 wah-hotarea=click>
 
 <div class=article-tag-card__title>收录于话题</div>
 <div class=article-tags>
 <div class="article-tag__item-wrp js_tag weui-wa-hotarea" data-url="https://mp.weixin.qq.com/mp/appmsgalbum?__biz=MzI5ODY5MTQwMA==&amp;action=getalbum&amp;album_id=1531063116841680897#wechat_redirect" data-tag_id data-album_id=1531063116841680897 data-tag_source=0 role=link aria-labelledby=js_article_tag_name__1531063116841680897 aria-describedby="js_article_tag_num__1531063116841680897 js_article_tag_tips__1531063116841680897">
 <span aria-hidden=true id=js_article_tag_name__1531063116841680897 class=article-tag__item>#股票量化文章精选</span>
 <span aria-hidden=true class=article-tag__item-num>
 <span id=js_article_tag_num__1531063116841680897>36</span>
 <span id=js_article_tag_tips__1531063116841680897 class=weui-hidden_abs>个内容</span>
 </span>
 </div>
 <div class="article-tag__item-wrp js_tag weui-wa-hotarea" data-url="https://mp.weixin.qq.com/mp/appmsgalbum?__biz=MzI5ODY5MTQwMA==&amp;action=getalbum&amp;album_id=1532127869097803777#wechat_redirect" data-tag_id data-album_id=1532127869097803777 data-tag_source=0 role=link aria-labelledby=js_article_tag_name__1532127869097803777 aria-describedby="js_article_tag_num__1532127869097803777 js_article_tag_tips__1532127869097803777">
 <span aria-hidden=true id=js_article_tag_name__1532127869097803777 class=article-tag__item>#编程技巧</span>
 <span aria-hidden=true class=article-tag__item-num>
 <span id=js_article_tag_num__1532127869097803777>7</span>
 <span id=js_article_tag_tips__1532127869097803777 class=weui-hidden_abs>个内容</span>
 </span>
 </div>
 </div>
 </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 <div class=rich_media_content id=js_content style=visibility:visible>
 
 
 
 
 <section style=padding-right:10px;padding-left:10px;box-sizing:border-box;visibility:visible><section style=box-sizing:border-box;visibility:visible powered-by=xiumi.us><section style=text-align:center;margin-top:10px;margin-bottom:10px;box-sizing:border-box;visibility:visible><section style=max-width:100%;vertical-align:middle;display:inline-block;box-sizing:border-box;visibility:visible><img data-ratio=0.6671875 data-src="https://mmbiz.qpic.cn/mmbiz_jpg/icRWSd2YBLosJ964pTo2vwCnxdxjgOJEMK8vlYNIKCWHQjUq7Y5rKtoCq2lxbBjvMaHrkAIDB8k9LxxchNat2VQ/640?wx_fmt=jpeg" data-type=jpeg data-w=640 style=vertical-align:middle;box-sizing:border-box;visibility:visible!important;width:640px!important;height:auto!important _width=640px src="" crossorigin=anonymous alt=图片 data-fail=0></section></section></section><section style=box-sizing:border-box;visibility:visible powered-by=xiumi.us><section style=box-sizing:border-box;visibility:visible><section style=font-size:14px;color:rgb(160,160,160);box-sizing:border-box;visibility:visible data-darkmode-color-16339065396022="rgb(160, 160, 160)" data-darkmode-original-color-16339065396022="#fff|rgb(160, 160, 160)"><p style=text-align:right;box-sizing:border-box;visibility:visible data-darkmode-color-16339065396022="rgb(160, 160, 160)" data-darkmode-original-color-16339065396022="#fff|rgb(160, 160, 160)">作者：陈可桐&nbsp; 修改：邢不行</p></section></section></section><section style=box-sizing:border-box;visibility:visible powered-by=xiumi.us><section style=box-sizing:border-box;visibility:visible><section style=box-sizing:border-box;visibility:visible><p style=box-sizing:border-box;visibility:visible><br style=box-sizing:border-box;visibility:visible><p style=box-sizing:border-box;visibility:visible>如何评价一个量化策略的好坏？<p style=box-sizing:border-box;visibility:visible><br style=box-sizing:border-box;visibility:visible><p style=box-sizing:border-box;visibility:visible>简单的来讲，我首先是看年化收益。收益太差，基本就不用看了。<p style=box-sizing:border-box;visibility:visible><br style=box-sizing:border-box;visibility:visible><p style=box-sizing:border-box;visibility:visible>在收益不错的情况下，其次我就看<strong style=box-sizing:border-box;visibility:visible><span style=color:rgb(0,33,160);box-sizing:border-box;visibility:visible data-darkmode-color-16339065396022="rgb(44, 88, 255)" data-darkmode-original-color-16339065396022="#fff|rgb(0, 33, 160)" data-style="color: rgb(0, 33, 160); box-sizing: border-box;" class=js_darkmode__0>最大回撤</span></strong>。<p style=box-sizing:border-box;visibility:visible><br style=box-sizing:border-box;visibility:visible><p style=box-sizing:border-box;visibility:visible>最大回撤属于风险指标，判断一个策略风险的高低。很多人<span style=letter-spacing:0px;box-sizing:border-box;visibility:visible>评价风险，会用一些比较学术的指标，例如方差、波动率等。但我觉着这些都</span><span style=letter-spacing:0px;box-sizing:border-box;visibility:visible>太不直观，比如算出来一个方差，0.035，根本就不能直观的知道是啥意思。</span><p style=box-sizing:border-box;visibility:visible><span style=letter-spacing:0px;box-sizing:border-box;visibility:visible><br style=visibility:visible></span><p style=box-sizing:border-box;visibility:visible>本文通过逐行讲解python代码的方式，详细解释什么是最大回撤，以及具体计算方法，<span style=color:rgb(0,33,160);box-sizing:border-box;visibility:visible data-darkmode-color-16339065396022="rgb(44, 88, 255)" data-darkmode-original-color-16339065396022="#fff|rgb(0, 33, 160)" data-style="color: rgb(0, 33, 160); box-sizing: border-box;" class=js_darkmode__1><strong style=box-sizing:border-box;visibility:visible data-darkmode-color-16339065396022="rgb(44, 88, 255)" data-darkmode-original-color-16339065396022="#fff|rgb(0, 33, 160)">完整的源代码见文末</strong></span>。大家可以看到计算的过程其实非常简单，主要部分也就三行代码。<p style=box-sizing:border-box><br style=box-sizing:border-box><p style=box-sizing:border-box>另外，除了年化收益，最大回撤之外，我第三看中的指标是什么呢？这个大家可以在评论中回复，感兴趣的人多的话，下次写篇文章讲讲。<p style=box-sizing:border-box><br style=box-sizing:border-box></p></section></section></section><section style=box-sizing:border-box powered-by=xiumi.us><section style=text-align:center;margin-top:10px;margin-bottom:10px;box-sizing:border-box><section style=max-width:100%;vertical-align:middle;display:inline-block;box-sizing:border-box><img data-ratio=0.1015625 data-src="https://mmbiz.qpic.cn/mmbiz_jpg/icRWSd2YBLosJ964pTo2vwCnxdxjgOJEMoG6zVEox99Tp9jM4icu5PAFicIZCz5jxXuDMLkXHo8FMia1tTc4b4AcUA/640?wx_fmt=jpeg" data-type=jpeg data-w=640 style=vertical-align:middle;box-sizing:border-box;width:640px!important;height:auto!important;visibility:visible!important _width=640px src= crossorigin=anonymous alt=图片 data-fail=0></section></section></section><section style=box-sizing:border-box powered-by=xiumi.us><section style=box-sizing:border-box><section style=box-sizing:border-box><p style=box-sizing:border-box>最大回撤是评价策略风险的指标，它的含义是：在某一个高点之后，资金曲线下挫最大的幅度。也就是<span style=color:rgb(0,33,160);box-sizing:border-box data-darkmode-color-16339065396022="rgb(44, 88, 255)" data-darkmode-original-color-16339065396022="#fff|rgb(0, 33, 160)" data-style="color: rgb(0, 33, 160); box-sizing: border-box;" class=js_darkmode__2><strong style=box-sizing:border-box data-darkmode-color-16339065396022="rgb(44, 88, 255)" data-darkmode-original-color-16339065396022="#fff|rgb(0, 33, 160)">这个策略在最坏的情况下，会亏掉多少钱。</strong></span><p style=box-sizing:border-box><br></p></section></section></section><section style=box-sizing:border-box powered-by=xiumi.us><section style=text-align:center;margin-top:10px;margin-bottom:10px;box-sizing:border-box><section style="max-width:100%;vertical-align:middle;display:inline-block;box-shadow:rgb(160,160,160) 0px 0px 10px;box-sizing:border-box"><img data-ratio=0.5140625 data-src="https://mmbiz.qpic.cn/mmbiz_jpg/icRWSd2YBLosJ964pTo2vwCnxdxjgOJEMRFBM5hNSWPgTOLicD6X5EmsibCW4yvjtXmX0JDK8ia4QiaNsO3iaSy9UI3g/640?wx_fmt=jpeg" data-type=jpeg data-w=640 style=vertical-align:middle;box-sizing:border-box;width:640px!important;height:auto!important;visibility:visible!important _width=640px src="" crossorigin=anonymous alt=图片 data-fail=0></section></section></section><section style=box-sizing:border-box powered-by=xiumi.us><section style=box-sizing:border-box><section style=box-sizing:border-box><p style=box-sizing:border-box><br><p style=box-sizing:border-box><span style=color:rgb(62,62,62);box-sizing:border-box data-darkmode-color-16339065396022="rgb(163, 163, 163)" data-darkmode-original-color-16339065396022="#fff|rgb(62, 62, 62)" data-style="color: rgb(62, 62, 62); box-sizing: border-box;" class=js_darkmode__3>例如，在①的位置开多头仓位，一直没有平仓。那么在持仓期间，就发生了两次比较大的回撤（图中的黄色箭头），以及若干次小的回撤（图中的红色箭头）。</span><p style=box-sizing:border-box><br><p style=box-sizing:border-box><span style=color:rgb(62,62,62);box-sizing:border-box data-darkmode-color-16339065396022="rgb(163, 163, 163)" data-darkmode-original-color-16339065396022="#fff|rgb(62, 62, 62)" data-style="color: rgb(62, 62, 62); box-sizing: border-box;" class=js_darkmode__4>而最大回撤，就是要<span style=color:rgb(0,33,160);box-sizing:border-box data-darkmode-color-16339065396022="rgb(44, 88, 255)" data-darkmode-original-color-16339065396022="#fff|rgb(62, 62, 62)|rgb(0, 33, 160)" data-style="color: rgb(0, 33, 160); box-sizing: border-box;" class=js_darkmode__5><strong style=box-sizing:border-box data-darkmode-color-16339065396022="rgb(44, 88, 255)" data-darkmode-original-color-16339065396022="#fff|rgb(62, 62, 62)|rgb(0, 33, 160)">找到这些回撤中使资金损失最大的一次。并且用百分比的方式量化地表示出来</strong></span>。</span><p style=box-sizing:border-box><br></p></section></section></section><section style=box-sizing:border-box powered-by=xiumi.us><section style=box-sizing:border-box><section style=box-sizing:border-box><p style=box-sizing:border-box>最大回撤的概念虽然直观，但到底应该怎么计算呢？比如下面这根资金曲线：<p style=box-sizing:border-box><br style=box-sizing:border-box></p></section></section></section><section style=box-sizing:border-box powered-by=xiumi.us><section style=text-align:center;margin-top:10px;margin-bottom:10px;box-sizing:border-box><section style="max-width:100%;vertical-align:middle;display:inline-block;box-shadow:rgb(160,160,160) 0px 0px 10px;box-sizing:border-box"><img data-ratio=0.6671875 data-src="https://mmbiz.qpic.cn/mmbiz_jpg/icRWSd2YBLosJ964pTo2vwCnxdxjgOJEMosdykMhgicVER9MfibA9xhZ41fZ1ibvd7FyYVVpWlbkibYa2xdibSxPkeBQ/640?wx_fmt=jpeg" data-type=jpeg data-w=640 style=vertical-align:middle;box-sizing:border-box;width:640px!important;height:auto!important;visibility:visible!important _width=640px src="" crossorigin=anonymous alt=图片 data-fail=0></section></section></section><section style=box-sizing:border-box powered-by=xiumi.us><section style=box-sizing:border-box><section style=box-sizing:border-box><p style=box-sizing:border-box><br style=box-sizing:border-box><p style=box-sizing:border-box>在这根资金曲线上，从 ① 到 ②，从 ③ 到 ④，都发生了比较大的回撤。从百分比上来讲，究竟哪次最大？我们用代码和数据说话。<br style=box-sizing:border-box><p style=box-sizing:border-box><br style=box-sizing:border-box><p style=box-sizing:border-box><br style=box-sizing:border-box></p></section></section></section><section style=box-sizing:border-box powered-by=xiumi.us><section style=text-align:center;margin-top:10px;margin-bottom:10px;box-sizing:border-box><section style=max-width:100%;vertical-align:middle;display:inline-block;box-sizing:border-box><img data-ratio=0.1015625 data-src="https://mmbiz.qpic.cn/mmbiz_jpg/icRWSd2YBLosJ964pTo2vwCnxdxjgOJEMh5LSFXxicHuBZuMxKrbwUcsvx3DoxiaQ8vm9vuuTkDYrbRUHHdq7bBDA/640?wx_fmt=jpeg" data-type=jpeg data-w=640 style=vertical-align:middle;box-sizing:border-box;width:640px!important;height:auto!important;visibility:visible!important _width=640px src="" crossorigin=anonymous alt=图片 data-fail=0></section></section></section><section style=box-sizing:border-box powered-by=xiumi.us><section style=box-sizing:border-box><section style=box-sizing:border-box><p style=box-sizing:border-box>首先，我们读取策略的已经计算完成的资金曲线，也就是回测之后得到的结果。原始数据是这样的：<p style=box-sizing:border-box><br style=box-sizing:border-box></p></section></section></section><section style=box-sizing:border-box powered-by=xiumi.us><section style=text-align:center;margin-top:10px;margin-bottom:10px;box-sizing:border-box><section style="max-width:100%;vertical-align:middle;display:inline-block;box-shadow:rgb(160,160,160) 0px 0px 10px;box-sizing:border-box"><img data-ratio=0.3 data-src="https://mmbiz.qpic.cn/mmbiz_jpg/icRWSd2YBLosJ964pTo2vwCnxdxjgOJEMpR0dsiciaHccmhgGcKNbHnIwxDAe90U85KgoNibmjaKicNdUv1aa4r8riag/640?wx_fmt=jpeg" data-type=jpeg data-w=640 style=vertical-align:middle;box-sizing:border-box;width:640px!important;height:auto!important;visibility:visible!important _width=640px src= crossorigin=anonymous alt=图片 data-fail=0></section></section></section><section style=box-sizing:border-box powered-by=xiumi.us><section style=box-sizing:border-box><section style=box-sizing:border-box><p style=box-sizing:border-box><br><p style=box-sizing:border-box><span style=letter-spacing:0px;box-sizing:border-box>实际上，要计算最大回撤，我们需要的只有</span><span style=letter-spacing:0px;color:rgb(0,33,160);box-sizing:border-box data-darkmode-color-16339065396022="rgb(44, 88, 255)" data-darkmode-original-color-16339065396022="#fff|rgb(0, 33, 160)" data-style="letter-spacing: 0px; color: rgb(0, 33, 160); box-sizing: border-box;" class=js_darkmode__6><strong style=box-sizing:border-box data-darkmode-color-16339065396022="rgb(44, 88, 255)" data-darkmode-original-color-16339065396022="#fff|rgb(0, 33, 160)"> candle_begin_time</strong></span><span style=letter-spacing:0px;box-sizing:border-box>（k线开始时间）和 </span><strong style=letter-spacing:0px;box-sizing:border-box><span style=color:rgb(0,33,160);box-sizing:border-box data-darkmode-color-16339065396022="rgb(44, 88, 255)" data-darkmode-original-color-16339065396022="#fff|rgb(0, 33, 160)" data-style="color: rgb(0, 33, 160); box-sizing: border-box;" class=js_darkmode__7>equity_curve</span></strong><span style=letter-spacing:0px;box-sizing:border-box>（资金曲线的值）这两列。</span><span style=letter-spacing:0px;box-sizing:border-box>选出数据中我们需要的部分，保存在 equity 这个 dataframe里。</span><br style=box-sizing:border-box><p style=box-sizing:border-box><br style=box-sizing:border-box></p></section></section></section><section style=box-sizing:border-box powered-by=xiumi.us><section style=text-align:center;margin-top:10px;margin-bottom:10px;box-sizing:border-box><section style="max-width:100%;vertical-align:middle;display:inline-block;box-shadow:rgb(160,160,160) 0px 0px 10px;box-sizing:border-box"><img data-ratio=0.1453125 data-src="https://mmbiz.qpic.cn/mmbiz_jpg/icRWSd2YBLosJ964pTo2vwCnxdxjgOJEMIuhCCBAuXia5ibsZhhuOMyNmrldsrkmeyYjGkaVIQ2FuVXpAUicQXFwQQ/640?wx_fmt=jpeg" data-type=jpeg data-w=640 style=vertical-align:middle;box-sizing:border-box;width:640px!important;height:auto!important;visibility:visible!important _width=640px src="" crossorigin=anonymous alt=图片 data-fail=0></section></section></section><section style=box-sizing:border-box powered-by=xiumi.us><section style=box-sizing:border-box><section style=box-sizing:border-box><p style=box-sizing:border-box><br style=box-sizing:border-box><p style=box-sizing:border-box>然后，我们用 <span style=color:rgb(62,62,62);box-sizing:border-box data-darkmode-color-16339065396022="rgb(163, 163, 163)" data-darkmode-original-color-16339065396022="#fff|rgb(62, 62, 62)" data-style="color: rgb(62, 62, 62); box-sizing: border-box;" class=js_darkmode__8>expanding()</span><span style=color:rgb(0,0,0);box-sizing:border-box data-darkmode-color-16339065396022="rgb(163, 163, 163)" data-darkmode-original-color-16339065396022="#fff|rgb(0, 0, 0)" data-style="color: rgb(0, 0, 0); box-sizing: border-box;" class=js_darkmode__9> </span>计算资金曲线的<span style=color:rgb(0,33,160);box-sizing:border-box data-darkmode-color-16339065396022="rgb(44, 88, 255)" data-darkmode-original-color-16339065396022="#fff|rgb(0, 33, 160)" data-style="color: rgb(0, 33, 160); box-sizing: border-box;" class=js_darkmode__10><strong style=box-sizing:border-box data-darkmode-color-16339065396022="rgb(44, 88, 255)" data-darkmode-original-color-16339065396022="#fff|rgb(0, 33, 160)">滚动最高值(max to here)</strong></span>：<p style=box-sizing:border-box><br style=box-sizing:border-box></p></section></section></section><section style=box-sizing:border-box powered-by=xiumi.us><section style=text-align:center;margin-top:10px;margin-bottom:10px;box-sizing:border-box><section style="max-width:100%;vertical-align:middle;display:inline-block;box-shadow:rgb(160,160,160) 0px 0px 10px;box-sizing:border-box"><img data-ratio=0.1515152 data-src="https://mmbiz.qpic.cn/mmbiz_jpg/icRWSd2YBLosJ964pTo2vwCnxdxjgOJEMXavBJlwk0FK5uEwxjcXGJGwD6wxVuiciaYPLpzhxg8K2jweh8FESBboA/640?wx_fmt=jpeg" data-type=jpeg data-w=495 style=vertical-align:middle;box-sizing:border-box;width:495px!important;height:auto!important;visibility:visible!important _width=495px src="" crossorigin=anonymous alt=图片 data-fail=0></section></section></section><section style=box-sizing:border-box powered-by=xiumi.us><section style=box-sizing:border-box><section style=box-sizing:border-box><p style=box-sizing:border-box><br style=box-sizing:border-box><p style=box-sizing:border-box>什么叫滚动最高值呢：<p style=box-sizing:border-box><br style=box-sizing:border-box></p></section></section></section><section style=box-sizing:border-box powered-by=xiumi.us><section style=text-align:center;margin-top:10px;margin-bottom:10px;box-sizing:border-box><section style="max-width:100%;vertical-align:middle;display:inline-block;box-shadow:rgb(160,160,160) 0px 0px 10px;box-sizing:border-box"><img data-ratio=0.7640625 data-src="https://mmbiz.qpic.cn/mmbiz_jpg/icRWSd2YBLosJ964pTo2vwCnxdxjgOJEM8OmkIP3WicwnszDrRdNb5WxU2Qw7FibXwx9ic0icufpzUJWkv9bqubzPsw/640?wx_fmt=jpeg" data-type=jpeg data-w=640 style=vertical-align:middle;box-sizing:border-box;width:640px!important;height:auto!important;visibility:visible!important _width=640px src="" crossorigin=anonymous alt=图片 data-fail=0></section></section></section><section style=box-sizing:border-box powered-by=xiumi.us><section style=box-sizing:border-box><section style=box-sizing:border-box><p style=box-sizing:border-box><br style=box-sizing:border-box><p style=box-sizing:border-box>图中的红线就是滚动最高值。表示<span style=color:rgb(0,33,160);box-sizing:border-box data-darkmode-color-16339065396022="rgb(44, 88, 255)" data-darkmode-original-color-16339065396022="#fff|rgb(0, 33, 160)" data-style="color: rgb(0, 33, 160); box-sizing: border-box;" class=js_darkmode__11><strong style=box-sizing:border-box data-darkmode-color-16339065396022="rgb(44, 88, 255)" data-darkmode-original-color-16339065396022="#fff|rgb(0, 33, 160)">截至某个时间点，资金曲线的最大值</strong></span>。<p style=box-sizing:border-box><br style=box-sizing:border-box><p style=box-sizing:border-box>接下来，我们计算回撤，也就是资金曲线在滚动最高点之后，下挫的百分比：<p style=box-sizing:border-box><br style=box-sizing:border-box></p></section></section></section><section style=box-sizing:border-box powered-by=xiumi.us><section style=text-align:center;margin-top:10px;margin-bottom:10px;box-sizing:border-box><section style="max-width:100%;vertical-align:middle;display:inline-block;box-shadow:rgb(160,160,160) 0px 0px 10px;box-sizing:border-box"><img data-ratio=0.1493124 data-src="https://mmbiz.qpic.cn/mmbiz_jpg/icRWSd2YBLosJ964pTo2vwCnxdxjgOJEMOjyThf2wrTpdJUpIC23ORKgf6KTeZotibSlYXBRhB027T78jBduK6tA/640?wx_fmt=jpeg" data-type=jpeg data-w=509 style=vertical-align:middle;box-sizing:border-box;width:509px!important;height:auto!important;visibility:visible!important _width=509px src= crossorigin=anonymous alt=图片 data-fail=0></section></section></section><section style=box-sizing:border-box powered-by=xiumi.us><section style=box-sizing:border-box><section style=box-sizing:border-box><p style=box-sizing:border-box><br style=box-sizing:border-box><p style=box-sizing:border-box>这里计算的 dd2here 是：<span style=color:rgb(0,33,160);box-sizing:border-box data-darkmode-color-16339065396022="rgb(44, 88, 255)" data-darkmode-original-color-16339065396022="#fff|rgb(0, 33, 160)" data-style="color: rgb(0, 33, 160); box-sizing: border-box;" class=js_darkmode__12><strong style=box-sizing:border-box data-darkmode-color-16339065396022="rgb(44, 88, 255)" data-darkmode-original-color-16339065396022="#fff|rgb(0, 33, 160)">回撤完之后，资金剩余的百分比</strong></span>。在图中直观地看：<p style=box-sizing:border-box><br style=box-sizing:border-box></p></section></section></section><section style=box-sizing:border-box powered-by=xiumi.us><section style=text-align:center;margin-top:10px;margin-bottom:10px;box-sizing:border-box><section style="max-width:100%;vertical-align:middle;display:inline-block;box-shadow:rgb(160,160,160) 0px 0px 10px;box-sizing:border-box"><img data-ratio=0.778125 data-src="https://mmbiz.qpic.cn/mmbiz_jpg/icRWSd2YBLosJ964pTo2vwCnxdxjgOJEMocUjn8Dtia8GkJvDyoFP6ywMiceExROD4fJoYDcmbBHKgrsJsGrEczsQ/640?wx_fmt=jpeg" data-type=jpeg data-w=640 style=vertical-align:middle;box-sizing:border-box;width:640px!important;height:auto!important;visibility:visible!important _width=640px src="" crossorigin=anonymous alt=图片 data-fail=0></section></section></section><section style=box-sizing:border-box powered-by=xiumi.us><section style=box-sizing:border-box><section style=box-sizing:border-box><p style=box-sizing:border-box><br style=box-sizing:border-box><p style=box-sizing:border-box>浅色的线就是我们计算得到的 dd2here 。比较明显的是，在图中的※位置，回撤结束后只剩下约 20%的资金，几乎可以说是整根资金曲线中发生的最大的回撤。<p style=box-sizing:border-box><br style=box-sizing:border-box><p style=box-sizing:border-box>下一步，我们只要找出 dd2here 这列数据中的最小值，就可以知道最大回撤了。<p style=box-sizing:border-box><br style=box-sizing:border-box></p></section></section></section><section style=box-sizing:border-box powered-by=xiumi.us><section style=text-align:center;margin-top:10px;margin-bottom:10px;box-sizing:border-box><section style="max-width:100%;vertical-align:middle;display:inline-block;box-shadow:rgb(160,160,160) 0px 0px 10px;box-sizing:border-box"><img data-ratio=0.1418564 data-src="https://mmbiz.qpic.cn/mmbiz_jpg/icRWSd2YBLosJ964pTo2vwCnxdxjgOJEM1ldG3rQaqH7u9hcR5tGPnyJtT5Ro2ia6fSblIljSket1DMhCh8joAzw/640?wx_fmt=jpeg" data-type=jpeg data-w=571 style=vertical-align:middle;box-sizing:border-box;width:571px!important;height:auto!important;visibility:visible!important _width=571px src="" crossorigin=anonymous alt=图片 data-fail=0></section></section></section><section style=box-sizing:border-box powered-by=xiumi.us><section style=box-sizing:border-box><section style=box-sizing:border-box><p style=box-sizing:border-box><br style=box-sizing:border-box><p style=box-sizing:border-box>根据 dd2here 对 equity 进行从小到大的排序，那么第一行就包含了 dd2here 的最小值。<p style=box-sizing:border-box><br style=box-sizing:border-box><p style=box-sizing:border-box>取第一行的candle_begin_time 和 dd2here，它们就是<span style=color:rgb(0,33,160);box-sizing:border-box data-darkmode-color-16339065396022="rgb(44, 88, 255)" data-darkmode-original-color-16339065396022="#fff|rgb(0, 33, 160)" data-style="color: rgb(0, 33, 160); box-sizing: border-box;" class=js_darkmode__13><strong style=box-sizing:border-box data-darkmode-color-16339065396022="rgb(44, 88, 255)" data-darkmode-original-color-16339065396022="#fff|rgb(0, 33, 160)">最大回撤结束的时间</strong></span>，以及<span style=color:rgb(0,33,160);box-sizing:border-box data-darkmode-color-16339065396022="rgb(44, 88, 255)" data-darkmode-original-color-16339065396022="#fff|rgb(0, 33, 160)" data-style="color: rgb(0, 33, 160); box-sizing: border-box;" class=js_darkmode__14><strong style=box-sizing:border-box data-darkmode-color-16339065396022="rgb(44, 88, 255)" data-darkmode-original-color-16339065396022="#fff|rgb(0, 33, 160)">回撤结束时资金剩余的百分比</strong></span>。我们把这两个值分别赋给 end_date 和 remains，那么很明显，<span style=color:rgb(0,33,160);box-sizing:border-box data-darkmode-color-16339065396022="rgb(44, 88, 255)" data-darkmode-original-color-16339065396022="#fff|rgb(0, 33, 160)" data-style="color: rgb(0, 33, 160); box-sizing: border-box;" class=js_darkmode__15><strong style=box-sizing:border-box data-darkmode-color-16339065396022="rgb(44, 88, 255)" data-darkmode-original-color-16339065396022="#fff|rgb(0, 33, 160)">最大回撤就是 1 - remains</strong></span>。<p style=box-sizing:border-box><br style=box-sizing:border-box><p style=box-sizing:border-box>最后，我们需要找到最大回撤开始的时间，也就是<span style=color:rgb(0,33,160);box-sizing:border-box data-darkmode-color-16339065396022="rgb(44, 88, 255)" data-darkmode-original-color-16339065396022="#fff|rgb(0, 33, 160)" data-style="color: rgb(0, 33, 160); box-sizing: border-box;" class=js_darkmode__16><strong style=box-sizing:border-box data-darkmode-color-16339065396022="rgb(44, 88, 255)" data-darkmode-original-color-16339065396022="#fff|rgb(0, 33, 160)">在最大回撤结束之前，最后一次滚动最高值出现的点，也就是资金曲线的最高点</strong></span>。在图中表示为这个点：<p style=box-sizing:border-box><br style=box-sizing:border-box></p></section></section></section><section style=box-sizing:border-box powered-by=xiumi.us><section style=text-align:center;margin-top:10px;margin-bottom:10px;box-sizing:border-box><section style="max-width:100%;vertical-align:middle;display:inline-block;box-shadow:rgb(160,160,160) 0px 0px 10px;box-sizing:border-box"><img data-ratio=0.7640625 data-src="https://mmbiz.qpic.cn/mmbiz_jpg/icRWSd2YBLosJ964pTo2vwCnxdxjgOJEM1by48iaYHicUVEHrmQLKcp2COEIdfJfTVLRysVQPnp7XrtyVNxBWeWibg/640?wx_fmt=jpeg" data-type=jpeg data-w=640 style=vertical-align:middle;box-sizing:border-box;width:640px!important;height:auto!important;visibility:visible!important _width=640px src="" crossorigin=anonymous alt=图片 data-fail=0></section></section></section><section style=box-sizing:border-box powered-by=xiumi.us><section style=box-sizing:border-box><section style=box-sizing:border-box><p style=box-sizing:border-box><br style=box-sizing:border-box><p style=box-sizing:border-box>找到这个点的代码如下：<p style=box-sizing:border-box><br style=box-sizing:border-box></p></section></section></section><section style=box-sizing:border-box powered-by=xiumi.us><section style=text-align:center;margin-top:10px;margin-bottom:10px;box-sizing:border-box><section style="max-width:100%;vertical-align:middle;display:inline-block;box-shadow:rgb(160,160,160) 0px 0px 10px;box-sizing:border-box"><img data-ratio=0.1968504 data-src="https://mmbiz.qpic.cn/mmbiz_jpg/icRWSd2YBLosJ964pTo2vwCnxdxjgOJEM5mCd6aGjgiczJ1vVhDqibCRHb9P0Tby2DrUulh00CYvUrTEenNIMZetQ/640?wx_fmt=jpeg" data-type=jpeg data-w=508 style=vertical-align:middle;box-sizing:border-box;width:508px!important;height:auto!important;visibility:visible!important _width=508px src= crossorigin=anonymous alt=图片 data-fail=0></section></section></section><section style=box-sizing:border-box powered-by=xiumi.us><section style=box-sizing:border-box><section style=box-sizing:border-box><p style=box-sizing:border-box><br style=box-sizing:border-box><p style=box-sizing:border-box>首先选出资金曲线在最大回撤结束之前的部分。<p style=box-sizing:border-box><br style=box-sizing:border-box><p style=box-sizing:border-box>然后，将这部分资金曲线的 dataframe 根据资金的值 (equity_curve) 进行从大到小排序，那么第一行就包含了资金曲线的最大值，它的时间也就是我们想要找的最大回撤开始时间。<p style=box-sizing:border-box><br style=box-sizing:border-box><p style=box-sizing:border-box>最后，我们将最大回撤和这两个时间点打印出来：<p style=box-sizing:border-box><br style=box-sizing:border-box></p></section></section></section><section style=box-sizing:border-box powered-by=xiumi.us><section style=text-align:center;margin-top:10px;margin-bottom:10px;box-sizing:border-box><section style="max-width:100%;vertical-align:middle;display:inline-block;box-shadow:rgb(160,160,160) 0px 0px 10px;box-sizing:border-box"><img data-ratio=0.193154 data-src="https://mmbiz.qpic.cn/mmbiz_jpg/icRWSd2YBLosJ964pTo2vwCnxdxjgOJEMmXaNNiapGGsHt3TBcuruxLB5VOFhmB5kscGk7fLo58gE20IGlfp5smA/640?wx_fmt=jpeg" data-type=jpeg data-w=409 style=vertical-align:middle;box-sizing:border-box;width:409px!important;height:auto!important;visibility:visible!important _width=409px src="" crossorigin=anonymous alt=图片 data-fail=0></section></section></section><section style=box-sizing:border-box powered-by=xiumi.us><section style=box-sizing:border-box><section style=box-sizing:border-box><p style=box-sizing:border-box><br style=box-sizing:border-box><p style=box-sizing:border-box>确实是产生了高达79.34%的回撤。<p style=box-sizing:border-box><br style=box-sizing:border-box></p></section></section></section><section style=box-sizing:border-box powered-by=xiumi.us><section style=text-align:center;margin-top:10px;margin-bottom:10px;box-sizing:border-box><section style="max-width:100%;vertical-align:middle;display:inline-block;box-shadow:rgb(160,160,160) 0px 0px 10px;box-sizing:border-box"><img data-ratio=0.2246835 data-src="https://mmbiz.qpic.cn/mmbiz_jpg/icRWSd2YBLosJ964pTo2vwCnxdxjgOJEMeMMFQTX6c8qNShwTRZVHuSVSq1aULW3usJmxz27Ze3oToKeUb93rcA/640?wx_fmt=jpeg" data-type=jpeg data-w=316 style=vertical-align:middle;box-sizing:border-box;width:316px!important;height:auto!important;visibility:visible!important _width=316px src="" crossorigin=anonymous alt=图片 data-fail=0></section></section></section><section style=box-sizing:border-box powered-by=xiumi.us><section style=box-sizing:border-box><section style=box-sizing:border-box><p style=box-sizing:border-box><br style=box-sizing:border-box><p style=box-sizing:border-box>最大回撤的计算就完成了。<p style=box-sizing:border-box><br style=box-sizing:border-box><p style=box-sizing:border-box><br style=box-sizing:border-box></p></section></section></section><section style=box-sizing:border-box powered-by=xiumi.us><section style=text-align:center;margin-top:10px;margin-bottom:10px;box-sizing:border-box><section style=max-width:100%;vertical-align:middle;display:inline-block;box-sizing:border-box><img data-ratio=0.1015625 data-src="https://mmbiz.qpic.cn/mmbiz_jpg/icRWSd2YBLosJ964pTo2vwCnxdxjgOJEMU9x3y3vvBJHiacbr9KykXALDZnVm4buftsaY5KsNK8XICb91apHUYbQ/640?wx_fmt=jpeg" data-type=jpeg data-w=640 style=vertical-align:middle;box-sizing:border-box;width:640px!important;height:auto!important;visibility:visible!important _width=640px src="" crossorigin=anonymous alt=图片 data-fail=0></section></section></section><section style=box-sizing:border-box powered-by=xiumi.us><section style=box-sizing:border-box><section style=box-sizing:border-box><p style=box-sizing:border-box>下面是完整的最大回撤计算代码：<p style=box-sizing:border-box><br style=box-sizing:border-box></p></section></section></section><section style=box-sizing:border-box powered-by=xiumi.us><section style=text-align:center;margin-top:10px;margin-bottom:10px;box-sizing:border-box><section style="max-width:100%;vertical-align:middle;display:inline-block;box-shadow:rgb(160,160,160) 0px 0px 10px;box-sizing:border-box"><img data-ratio=0.7703125 data-src="https://mmbiz.qpic.cn/mmbiz_jpg/icRWSd2YBLosJ964pTo2vwCnxdxjgOJEMDIHYfLNiaetGsgePXtY8akZgO1mCsTZvHcnl89kiayibP7WyiaMHp0OT9g/640?wx_fmt=jpeg" data-type=jpeg data-w=640 style=vertical-align:middle;box-sizing:border-box;width:640px!important;height:auto!important;visibility:visible!important _width=640px src= crossorigin=anonymous alt=图片 data-fail=0></section></section></section><section style=box-sizing:border-box powered-by=xiumi.us><section style=box-sizing:border-box><section style=box-sizing:border-box><p style=box-sizing:border-box><br style=box-sizing:border-box><p style=box-sizing:border-box><span style=letter-spacing:0px;box-sizing:border-box>如果有疑问，或者想要了解其他内容，可以扫描下方二维码加我微信(coinquant)和我交流。</span><p style=box-sizing:border-box><br style=box-sizing:border-box></p></section></section></section><section style=box-sizing:border-box powered-by=xiumi.us><section style=text-align:center;margin-top:10px;margin-bottom:10px;box-sizing:border-box><section style="max-width:100%;vertical-align:middle;display:inline-block;box-shadow:rgb(160,160,160) 0px 0px 10px;width:100%;box-sizing:border-box"><img data-ratio=0.3546875 data-src="https://mmbiz.qpic.cn/mmbiz_jpg/icRWSd2YBLosJ964pTo2vwCnxdxjgOJEMDmNSwpQnkA4LDls0qicckbFmvBV5iaIFIrDKGJycao2D0iblcaFIW4HuA/640?wx_fmt=jpeg" data-type=jpeg data-w=640 style=vertical-align:middle;box-sizing:border-box;width:100%!important;height:auto!important;visibility:visible!important _width=100% src="" crossorigin=anonymous alt=图片 data-fail=0></section></section></section><section style=box-sizing:border-box powered-by=xiumi.us><section style=box-sizing:border-box><section style=box-sizing:border-box><p style=box-sizing:border-box><br style=box-sizing:border-box></p></section></section></section><section style=box-sizing:border-box powered-by=xiumi.us><section style=margin-top:0.5em;margin-bottom:0.5em;overflow:hidden;box-sizing:border-box><section style=display:inline-block;vertical-align:middle;width:6px;height:6px;box-sizing:border-box><section style=transform:rotate(0.1deg);-webkit-transform:rotate(0.1deg);-moz-transform:rotate(0.1deg);-o-transform:rotate(0.1deg);box-sizing:border-box><section style=width:6px;height:6px;border-radius:100%;background-color:rgb(255,202,0);box-sizing:border-box data-darkmode-bgcolor-16339065396022="rgb(249, 197, 0)" data-darkmode-original-bgcolor-16339065396022="#fff|rgb(255, 202, 0)" data-style="width: 6px; height: 6px; border-radius: 100%; background-color: rgb(255, 202, 0); box-sizing: border-box;" class=js_darkmode__17></section></section></section><section style="display:inline-block;vertical-align:middle;width:100%;margin-right:-6px;margin-left:-7px;border-bottom:2px solid rgb(255,202,0);box-sizing:border-box" data-style="display: inline-block; vertical-align: middle; width: 100%; margin-right: -6px; margin-left: -7px; border-bottom: 2px solid rgb(255, 202, 0); box-sizing: border-box;" class=js_darkmode__18></section><section style=display:inline-block;vertical-align:middle;width:6px;height:6px;border-radius:100%;background-color:rgb(255,202,0);box-sizing:border-box data-darkmode-bgcolor-16339065396022="rgb(249, 197, 0)" data-darkmode-original-bgcolor-16339065396022="#fff|rgb(255, 202, 0)" data-style="display: inline-block; vertical-align: middle; width: 6px; height: 6px; border-radius: 100%; background-color: rgb(255, 202, 0); box-sizing: border-box;" class=js_darkmode__19></section></section></section><section style=box-sizing:border-box powered-by=xiumi.us><section style=box-sizing:border-box><section style=box-sizing:border-box><p style=box-sizing:border-box><br style=box-sizing:border-box></p></section></section></section><section style=box-sizing:border-box powered-by=xiumi.us><section style=box-sizing:border-box><section style=text-align:center;line-height:2;box-sizing:border-box><p style=box-sizing:border-box><span style=font-size:14px;color:rgb(108,108,108);box-sizing:border-box data-darkmode-color-16339065396022="rgb(108, 108, 108)" data-darkmode-original-color-16339065396022="#fff|rgb(108, 108, 108)">如果你想入门量化，但是始终找不到方向，可以加入我的知识星球。我会在里面解答你的问题，分享我的感悟，不论是投资、技术，还是职业选择、思维方式。</span><p style=box-sizing:border-box><br style=box-sizing:border-box><p style=box-sizing:border-box><span style=font-size:14px;color:rgb(108,108,108);box-sizing:border-box data-darkmode-color-16339065396022="rgb(108, 108, 108)" data-darkmode-original-color-16339065396022="#fff|rgb(108, 108, 108)">-- 学习和成长从来都不是一个人的事 --</span><p style=box-sizing:border-box><br style=box-sizing:border-box></p></section></section></section><section style=box-sizing:border-box powered-by=xiumi.us><section style=text-align:center;margin-top:10px;margin-bottom:10px;box-sizing:border-box><section style="max-width:100%;vertical-align:middle;display:inline-block;box-shadow:rgb(0,0,0) 0px 0px 0px;width:85%;box-sizing:border-box"><img data-ratio=1.3609375 data-src="https://mmbiz.qpic.cn/mmbiz_jpg/icRWSd2YBLosJ964pTo2vwCnxdxjgOJEMBQ8bncOJhiaL73rNLgjJqOaMB7yW1sGpyGDPUYXIArjawwiaUHNcgzHA/640?wx_fmt=jpeg" data-type=jpeg data-w=640 style=vertical-align:middle;box-sizing:border-box;width:100%!important;height:auto!important;visibility:visible!important _width=100% src="" crossorigin=anonymous alt=图片 data-fail=0></section></section></section><section style=box-sizing:border-box powered-by=xiumi.us><section style=box-sizing:border-box><section style=box-sizing:border-box><p style=box-sizing:border-box><br style=box-sizing:border-box></p></section></section></section><section style=box-sizing:border-box powered-by=xiumi.us><section style=box-sizing:border-box><section style=box-sizing:border-box><p style=box-sizing:border-box><br style=box-sizing:border-box></p></section></section></section></section><p><br></p>
 </div>
 
 
<div id=js_sponsor_ad_area style=display:none></div>
 
 <div class=read-more__area id=js_more_read_area style=display:none>
 
 </div>
 
 
 <div class="reward_area tc reward_area_primary reward_area_carry_whisper" id=js_reward_area style=display:none>
 
 
 
 
 
 
 
 </div>
 <div class="reward_qrcode_area reward_area tc" id=js_reward_qrcode style=display:none>
 
 
 
 
 </div>
 
 
 </div>
 <div id=js_tags_preview_toast class=article-tag__error-tips style=display:none>预览时标签不可点</div>
 
 
 
 
 <div id=js_album_keep_read class="appmsg_card_context album_read_card" style=display:block>
 <div role=button class="album_read_hd weui-flex" id=js_album_directory wah-hotarea=click>
 <div class=album_read_source><span>收录于话题 </span><span aria-hidden=true>#<span id=js_album_keep_read_title>股票量化文章精选</span></span></div>
 <span class=weui-btn__word-wrp><span id=js_album_keep_read_size>36</span>个<i class=weui_right_arrow></i></span>
 </div>
 <div class="album_read_bd weui-flex">
 <span role=button class="album_read_nav_item album_read_nav_prev weui-flex__item" id=js_album_prev wah-hotarea=click>
 <span class=album_read_nav_inner>
 <span class=album_read_nav_btn>上一篇</span>
 <span class=album_read_nav_title id=js_album_keep_read_pre_title>为什么不要100%投资股票：鸡蛋不放一个篮子的真意</span>
 </span>
 </span>
 <span role=button class="album_read_nav_item album_read_nav_next weui-flex__item" id=js_album_next wah-hotarea=click>
 <span class=album_read_nav_inner>
 <span class=album_read_nav_btn>下一篇</span>
 <span class=album_read_nav_title id=js_album_keep_read_next_title>万能Python | 交易策略买点、卖点可视化</span>
 </span>
 </span>
 </div>
 </div>
 
 
<div class=rich_media_tool id=js_toobar3>
 <div class=weui-flex>
 <div class=weui-flex__item>
 
 
 
 
 
 <div id=js_read_area3 role=option class="media_tool_meta tips_global_primary meta_primary" style=display:none>
 
 
 </div>
 
 
 </div>
 </div>
 <div class="weui-flex sns_opr_area" id=js_bottom_opr_right style=display:none>
 
 
 
 
 
 </div>
</div>
 
 <div class=like_comment_wrp id=js_like_comment style=display:none role=dialog tabindex=0>
 
 </div>
 <div style=display:none id=wow_close_inform role=dialog aria-modal=true>
 
 
 </div>
<div id=js_like_toast style=display:none>
 
 
</div>
<div style=display:none id=js_comment_panel>
 
 
</div>
<div id=js_loading style=display:none>
 
 
</div>
 </div>
 </div>
 <div class="rich_media_area_primary sougou" id=sg_tj style=display:none></div>
 
 <div class=rich_media_area_extra>
 <div class=rich_media_area_extra_inner>
 
 <div class=wx_follow_container id=js_like_profile_container></div>
 
 <div class=related_container id=js_related_container><div class="relate_mod_transition function_mod js_related_area" style="opacity:1;overflow:visible;height:8.66667em;margin:12px 0px 0px;transition:none 0s ease 0s"> <div class="function_mod_index js_related_main"> <div class="function_hd js_related_title"> 喜欢此内容的人还喜欢 </div> <div class=function_bd> <div class="relate_article_index_list relate_article_list js_related_list" style=height:auto;opacity:1 wah-hotarea=click> <div class="weui-media-box weui-media-box_appmsg js_related_item" data-index=0 data-url="http://mp.weixin.qq.com/s?__biz=MzA4OTA1MTEzMg==&amp;mid=2651209417&amp;idx=2&amp;sn=41bb4233a1c2e174ee70c84799a71c3f&amp;chksm=8bd2445abca5cd4ce5f06ad1dc5c759024d67bf9b1d4d9fb12ba82bece1b242b8317b24c9d62&amp;scene=132#wechat_redirect" data-time=1633611947 data-recalltype=1003 data-isreaded=0 data-bizuin=3089051132 data-mid=2651209417 data-idx=2 data-item_show_type=0 data-exptype data-ext_info={&amp;quot;rec_info&amp;quot;:{&amp;quot;model_id&amp;quot;:0}} data-hasreport=1> <div class=weui-media-box__bd> <div class="ellipsis_relate_title mask_ellipsis_wrp relate_article_default"> <div role=link id=relate_article_title_2651209417_2 aria-labelledby="relate_article_title_2651209417_2 " aria-describedby="relate_article_nickname_2651209417_2 relate_article_num_2651209417_2" class=mask_ellipsis> <div class=mask_ellipsis_text role=option> 8.3万余名事业编制，收回 </div> <div class=mask_ellipsis_placeholder aria-hidden=true></div> <div class=mask_ellipsis_extra aria-hidden=true> </div> </div> </div> <div class=weui-media-box__info> <div class=weui-media-box__info__inner> <div class=weui-media-box__info__meta aria-hidden=true id=relate_article_num_2651209417_2> </div> <div aria-hidden=true id=relate_article_nickname_2651209417_2 class="js_profile relate_profile relate_article_panel_active" data-username=gh_92685c9c3c6e> <div class=weui-media-box__info__meta> <span class=relate_profile_nickname> 济南时报 </span> </div> </div> </div> <div class=relate_article_opr> <button type=button class="reset_btn dislike_btn js_feedback_btn weui-wa-hotarea">不喜欢</button> </div> <div class="feedback_dialog_wrp js_feedback_dialog" role=dialog aria-modal=true tabindex=0 aria-hidden=true> <div class="weui-mask js_mask sf-hidden" role=button aria-label=关闭></div> <div class="feedback_dialog js_dialog_wrp"> <div class="feedback_dialog_hd weui-flex"> <div class="weui-flex__item feedback_dialog_title">不看的原因</div> <button type=button class="weui-btn weui-btn_primary weui-btn_mini weui-btn_disabled js_submit">确定</button> </div> <div class=feedback_dialog_bd> <ul class=feedback_tag_list> <li role=checkbox aria-checked=false class="feedback_tag_item js_reason js_tag_item" data-value=1>内容质量低</li> <li role=checkbox aria-checked=false class="feedback_tag_item js_reason js_tag_item" data-value=2>不看此公众号</li> </ul> </div> </div> </div> </div> </div> <div class=weui-media-box__ft style="background-image:url()"></div> </div> </div> </div> </div> </div> </div>
 
<div class=mpda_bottom_container id=js_bottom_ad_area style=display:none></div>
 
 <div class="rich_media_extra rich_media_extra_discuss" id=js_cmt_container style=display:none>
 
 
 </div>
 
 <div id=js_iframetest style=display:none></div>
 </div>
 </div>
 
 <div id=js_pc_qr_code class=qr_code_pc_outer style=display:block>
 <div class=qr_code_pc_inner>
 <div class=qr_code_pc>
 <img id=js_pc_qr_code_img class=qr_code_pc_img src="">
 <p>微信扫一扫<br>关注该公众号</p>
 </div>
 </div>
 </div>
 </div>
</div>
<div class=comment_primary_emotion_panel_wrp id=js_emotion_panel_pc style=display:none>
 
</div>
<div class=weui-dialog__wrp id=js_alert_panel style=display:none>
 
 
</div>
<div id=js_pc_weapp_code class="weui-desktop-popover weui-desktop-popover_pos-up-center weui-desktop-popover_img-text" style=display:none>
 
</div>
<div id=js_minipro_dialog style=display:none>
 
 
</div>
<div id=js_link_dialog style=display:none>
 
 
</div>
 
 
 
 
 <style class=sf-hidden>.weui-hidden_abs.weui-hidden_abs{position:absolute;opacity:0;overflow:hidden;left:auto;width:1px;height:1px}</style>
<span aria-hidden=true class=weui-hidden_abs id=js_a11y_colon>：</span>
<span aria-hidden=true class=weui-hidden_abs id=js_a11y_comma>，</span>
<span aria-hidden=true class=weui-hidden_abs id=js_a11y_period>。</span>
<span aria-hidden=true class=weui-hidden_abs id=js_a11y_type_video>视频</span>
<span aria-hidden=true class=weui-hidden_abs id=js_a11y_type_weapp>小程序</span>
<span aria-hidden=true class=weui-hidden_abs id=js_a11y_zan_btn_txt>赞</span>
<span aria-hidden=true class=weui-hidden_abs id=js_a11y_zan_btn_tips>，轻点两下取消赞</span>
<span aria-hidden=true class=weui-hidden_abs id=js_a11y_like_btn_txt>在看</span>
<span aria-hidden=true class=weui-hidden_abs id=js_a11y_like_btn_tips>，轻点两下取消在看</span>
 
 
<div style=display:none wah-hotarea=touchstart>
 
 
</div>